From 55cf5511fe3a67443cf4e88b2f355c3cfc36e836 Mon Sep 17 00:00:00 2001 From: Simon - fantomitechno Date: Fri, 5 Jan 2024 00:21:33 +0100 Subject: [PATCH] :bug: Use max charge instead of this 4 --- gradle.properties | 2 +- src/main/java/dev/renoux/enderrelay/load/DispenserBehavior.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {