From 8f2e5df3a7b2cf027864c24093fca98d9a4d780c Mon Sep 17 00:00:00 2001 From: yoyosource Date: Tue, 5 Oct 2021 10:51:26 +0200 Subject: [PATCH] Fix PistonLine algorithm Signed-off-by: yoyosource --- .../bausystem/features/panzern/algorithms/PistonLine.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/panzern/algorithms/PistonLine.java b/BauSystem_Main/src/de/steamwar/bausystem/features/panzern/algorithms/PistonLine.java index 5b54c48c..bea0301d 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/panzern/algorithms/PistonLine.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/panzern/algorithms/PistonLine.java @@ -38,7 +38,7 @@ public class PistonLine implements PanzernAlgorithm { @Override public PanzernResult check(Block source, Map adjacent, Set adjacentMaterials) { for (BlockFace blockFace : BLOCK_FACES) { - for (int i = 1; i < 12; i++) { + for (int i = 1; i < 14; i++) { Block relativeBlock = source.getRelative(blockFace.getModX() * i, blockFace.getModY() * i, blockFace.getModZ() * i); if (relativeBlock.getType().isAir()) { break;