From e9bbc37ea03468ce380a62adaba2b605ad0b7954 Mon Sep 17 00:00:00 2001 From: trinsdar <30245301+Trinsdar@users.noreply.github.com> Date: Mon, 1 Jul 2024 22:16:05 -0400 Subject: [PATCH] changed how plastic bin changes the max limit --- .../gtcore/blockentity/BlockEntityPlasticBin.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/common/src/main/java/io/github/gregtechintergalactical/gtcore/blockentity/BlockEntityPlasticBin.java b/common/src/main/java/io/github/gregtechintergalactical/gtcore/blockentity/BlockEntityPlasticBin.java index 6bf91d7..185e55d 100644 --- a/common/src/main/java/io/github/gregtechintergalactical/gtcore/blockentity/BlockEntityPlasticBin.java +++ b/common/src/main/java/io/github/gregtechintergalactical/gtcore/blockentity/BlockEntityPlasticBin.java @@ -31,9 +31,8 @@ public int getMaxLimit() { @Override public InteractionResult onInteractServer(BlockState state, Level world, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hit, @Nullable AntimatterToolType type) { if (type == AntimatterDefaultTools.WIRE_CUTTER){ - int addition = player.isCrouching() ? -64 : 64; - maxLimit += addition; - if (maxLimit == 0) { + maxLimit = player.isCrouching() ? maxLimit / 2 : maxLimit * 2; + if (maxLimit == 32) { maxLimit = 1024; } if (maxLimit > 1024) {