diff --git a/core/src/io/anuke/mindustry/world/blocks/types/distribution/Junction.java b/core/src/io/anuke/mindustry/world/blocks/types/distribution/Junction.java index 9d2f2abfac..e04a6f5d92 100644 --- a/core/src/io/anuke/mindustry/world/blocks/types/distribution/Junction.java +++ b/core/src/io/anuke/mindustry/world/blocks/types/distribution/Junction.java @@ -69,7 +69,7 @@ public class Junction extends Block{ JunctionEntity entity = tile.entity(); boolean x = tile.x == source.x; - if((x && entity.bx.full()) || (!x && entity.by.full())) return false; + if(entity == null || entity.bx == null || entity.by == null || (x && entity.bx.full()) || (!x && entity.by.full())) return false; int dir = source.relativeTo(tile.x, tile.y); if(dir == -1) return false; Tile to = tile.getNearby(dir);