From e22af83ed173a350db70019e85e98d020dfc9f67 Mon Sep 17 00:00:00 2001 From: buthed010203 Date: Tue, 25 May 2021 15:34:33 -0400 Subject: [PATCH] Fix a random disconnect (#5292) This almost never happens but since the flood uses this method extensively, everyone gets disconnected every hour or so so I fixed it myself. --- core/src/mindustry/world/Tile.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/mindustry/world/Tile.java b/core/src/mindustry/world/Tile.java index 2d9f1f98fb..79abb65ea3 100644 --- a/core/src/mindustry/world/Tile.java +++ b/core/src/mindustry/world/Tile.java @@ -628,6 +628,7 @@ public class Tile implements Position, QuadTreeObject, Displayable{ @Remote(called = Loc.server) public static void setTile(Tile tile, Block block, Team team, int rotation){ + if(tile == null) return; tile.setBlock(block, team, rotation); }