diff --git a/gradle.properties b/gradle.properties index 174342a..0b21a12 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,7 @@ org.gradle.jvmargs=-Xmx1G org.gradle.parallel = true # Mod Properties -version = 1.0.1 +version = 1.0.2 # Notes: when debugging, use rc's, so it would become: 0.X.X-rc.X maven_group = dev.renoux archives_base_name = enderrelay diff --git a/src/main/java/dev/renoux/enderrelay/load/DispenserBehavior.java b/src/main/java/dev/renoux/enderrelay/load/DispenserBehavior.java index aade696..bbeab00 100644 --- a/src/main/java/dev/renoux/enderrelay/load/DispenserBehavior.java +++ b/src/main/java/dev/renoux/enderrelay/load/DispenserBehavior.java @@ -46,7 +46,7 @@ public ItemStack execute(BlockSource blockSource, ItemStack itemStack) { BlockState blockState = level.getBlockState(blockPos); this.setSuccess(true); if (blockState.is(ModRegistries.ENDER_RELAY_BLOCK)) { - if (blockState.getValue(EnderRelayBlock.CHARGE) != 4) { + if (blockState.getValue(EnderRelayBlock.CHARGE) != EnderRelayBlock.MAX_CHARGES) { EnderRelayBlock.charge(null, level, blockPos, blockState); itemStack.shrink(1); } else {