SteamWar/BauSystem2.0
Archiviert
12
0

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

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2021-10-06 10:13:42 +02:00
Ursprung af9b521115
Commit 5d2b14bd14

Datei anzeigen

@ -26,6 +26,7 @@ import de.steamwar.bausystem.linkage.Linked;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
import org.bukkit.block.data.AnaloguePowerable;
import org.bukkit.block.data.Powerable;
import java.util.Map;
@ -48,6 +49,9 @@ public class SlabOnTorch implements PanzernAlgorithm {
if (block.getBlockData() instanceof Powerable) {
hasRedstone = true;
}
if (block.getBlockData() instanceof AnaloguePowerable) {
hasRedstone = true;
}
if (block.getType() == Material.TNT) {
hasRedstone = true;
}