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.
This commit is contained in:
buthed010203 2021-05-25 15:34:33 -04:00 committed by GitHub
parent 265f38dcc6
commit e22af83ed1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}