SteamWar/BauSystem2.0
Archiviert
12
0

Update PowerableActivation
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2021-12-10 10:58:20 +01:00
Ursprung c8ad93a00f
Commit 45a9686d71

Datei anzeigen

@ -52,7 +52,15 @@ public class PowerableActivation implements PanzernAlgorithm {
if (block.getType() == Material.TNT) {
powerable++;
}
if (blockFace == BlockFace.DOWN || blockFace == BlockFace.UP) {
if (blockFace == BlockFace.DOWN) {
for (BlockFace otherBlockFace : HORIZONTAL_FACES) {
Block otherBlock = block.getRelative(otherBlockFace);
if (otherBlock.getType() == Material.PISTON) {
powered++;
}
}
}
if (blockFace == BlockFace.UP) {
continue;
}
switch (block.getType()) {