SteamWar/BauSystem2.0
Archiviert
12
0

Fix PistonLine algorithm
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2021-10-05 10:51:26 +02:00
Ursprung 4b4ee30bda
Commit 8f2e5df3a7

Datei anzeigen

@ -38,7 +38,7 @@ public class PistonLine implements PanzernAlgorithm {
@Override @Override
public PanzernResult check(Block source, Map<BlockFace, Block> adjacent, Set<Material> adjacentMaterials) { public PanzernResult check(Block source, Map<BlockFace, Block> adjacent, Set<Material> adjacentMaterials) {
for (BlockFace blockFace : BLOCK_FACES) { 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); Block relativeBlock = source.getRelative(blockFace.getModX() * i, blockFace.getModY() * i, blockFace.getModZ() * i);
if (relativeBlock.getType().isAir()) { if (relativeBlock.getType().isAir()) {
break; break;