SteamWar/BauSystem2.0
Archiviert
12
0

Fix ObserverTracer

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2021-06-26 14:19:40 +02:00
Ursprung c6a6acfa0a
Commit bce9cfaa21

Datei anzeigen

@ -118,10 +118,7 @@ public class ObserverTracer {
for (BlockFace blockFace : ALLOWED) {
Location location = block.getLocation().add(blockFace.getModX(), blockFace.getModY(), blockFace.getModZ());
Block b = location.getBlock();
if (blockFace == observer.getFacing().getOppositeFace() && !b.getType().isAir()) {
if (b.getType() == Material.OBSERVER) {
continue;
}
if (blockFace == observer.getFacing().getOppositeFace() && !b.getType().isAir() && b.getType() != Material.OBSERVER) {
blockList.add(b);
if (checkMaterial(b)) {
calculateSolidBlock(b);