From 495581f8c993f01fe473ca39696807d6f61505ab Mon Sep 17 00:00:00 2001 From: wdfaESfaef <2622389575@qq.com> Date: Thu, 19 Dec 2024 15:53:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E5=80=BC=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dubhe/anvilcraft/event/PistonMoveBlockListener.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/dev/dubhe/anvilcraft/event/PistonMoveBlockListener.java b/src/main/java/dev/dubhe/anvilcraft/event/PistonMoveBlockListener.java index 337b403bc..c8b28551f 100644 --- a/src/main/java/dev/dubhe/anvilcraft/event/PistonMoveBlockListener.java +++ b/src/main/java/dev/dubhe/anvilcraft/event/PistonMoveBlockListener.java @@ -13,6 +13,7 @@ import net.minecraft.world.level.block.state.BlockState; import org.jetbrains.annotations.NotNull; +import org.spongepowered.asm.mixin.Unique; import java.util.Collection; import java.util.HashMap; @@ -20,12 +21,14 @@ import java.util.Map; public class PistonMoveBlockListener { + + @Unique private static final Map CHARGE_NUMS = new HashMap<>(); static { - CHARGE_NUMS.put(Blocks.COPPER_BLOCK, 1d / 8); - CHARGE_NUMS.put(Blocks.EXPOSED_COPPER, 1d / 16); - CHARGE_NUMS.put(Blocks.WEATHERED_COPPER, 1d / 32); + CHARGE_NUMS.put(Blocks.COPPER_BLOCK, 1d / 4); + CHARGE_NUMS.put(Blocks.EXPOSED_COPPER, 1d / 8); + CHARGE_NUMS.put(Blocks.WEATHERED_COPPER, 1d / 16); } /**