SteamWar/BauSystem2.0
Archiviert
12
0

Fix PistonCalculator
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2023-09-26 10:23:13 +02:00
Ursprung 910762126f
Commit 2f5eb080cf

Datei anzeigen

@ -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<Block> blockSet, List<Block> toCalc, Set<Location> unmovable) { private void calcDirection(Block origin, Block blockOrigin, Block calcOrigin, Block ignore, BlockFace facing, BlockFace direction, Set<Block> blockSet, List<Block> toCalc, Set<Location> unmovable) {
for (int i = 1; i < 13; i++) { for (int i = 1; i < 24; i++) {
Block block = calcOrigin.getRelative(direction, i); Block block = calcOrigin.getRelative(direction, i);
if (block.equals(ignore)) return; if (block.equals(ignore)) return;
if (block.getPistonMoveReaction() == PistonMoveReaction.BREAK) return; if (block.getPistonMoveReaction() == PistonMoveReaction.BREAK) return;