Fix NullPointerException in Room.java

This commit is contained in:
Alejandro 2019-06-13 17:17:20 +03:00
parent 7697765a5c
commit 40888f091c

View File

@ -3994,6 +3994,8 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
}
if (item.getBaseItem().getType() == FurnitureType.FLOOR) {
if (this.layout == null) return;
this.updateTiles(this.getLayout().getTilesAt(this.layout.getTile(item.getX(), item.getY()), item.getBaseItem().getWidth(), item.getBaseItem().getLength(), item.getRotation()));
}
}