From 2f5eb080cfdb6d7737d2bece1daf6dfe12e0f5fe Mon Sep 17 00:00:00 2001 From: yoyosource Date: Tue, 26 Sep 2023 10:23:13 +0200 Subject: [PATCH] Fix PistonCalculator Signed-off-by: yoyosource --- .../de/steamwar/bausystem/features/util/PistonCalculator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/util/PistonCalculator.java b/BauSystem_Main/src/de/steamwar/bausystem/features/util/PistonCalculator.java index b72c7aeb..15f0a005 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/util/PistonCalculator.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/util/PistonCalculator.java @@ -110,7 +110,7 @@ public class PistonCalculator implements Listener { } private void calcDirection(Block origin, Block blockOrigin, Block calcOrigin, Block ignore, BlockFace facing, BlockFace direction, Set blockSet, List toCalc, Set unmovable) { - for (int i = 1; i < 13; i++) { + for (int i = 1; i < 24; i++) { Block block = calcOrigin.getRelative(direction, i); if (block.equals(ignore)) return; if (block.getPistonMoveReaction() == PistonMoveReaction.BREAK) return;