From c9a53aed7bf193b2502aa96adc318e71ceb0d709 Mon Sep 17 00:00:00 2001 From: Anuken Date: Wed, 19 Sep 2018 17:36:58 -0400 Subject: [PATCH] Fixed crash, transmission bug --- core/src/io/anuke/mindustry/entities/TileEntity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/io/anuke/mindustry/entities/TileEntity.java b/core/src/io/anuke/mindustry/entities/TileEntity.java index 8e409ff572..98c7a767bb 100644 --- a/core/src/io/anuke/mindustry/entities/TileEntity.java +++ b/core/src/io/anuke/mindustry/entities/TileEntity.java @@ -183,8 +183,9 @@ public class TileEntity extends BaseEntity implements TargetTrait, HealthTrait{ for(GridPoint2 point : nearby){ Tile other = world.tile(tile.x + point.x, tile.y + point.y); - if(other == null || other.entity == null || other.getTeamID() != tile.getTeamID()) continue; + if(other == null) continue; other = other.target(); + if(other.entity == null || other.getTeamID() != tile.getTeamID()) continue; other.block().onProximityUpdate(other);