Fixed Teleport invisible user glitch. Credits to Dome and Necmi.

This commit is contained in:
harmonic 2020-07-10 15:08:52 +01:00
parent 8c3745601e
commit bf07e19864

View File

@ -730,6 +730,7 @@ public class RoomUnit {
}
public void addOverrideTile(RoomTile tile) {
if (!this.canOverrideTile(tile)) { return; } // Test if the Tile is overridable
int tileIndex = (room.getLayout().getMapSizeY() * tile.y) + tile.x + 1;
if (!this.overridableTiles.contains(tileIndex)) {
this.overridableTiles.add(tileIndex);