mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 23:46:28 +01:00
Fixed Teleport invisible user glitch. Credits to Dome and Necmi.
This commit is contained in:
parent
8c3745601e
commit
bf07e19864
@ -730,6 +730,7 @@ public class RoomUnit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void addOverrideTile(RoomTile tile) {
|
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;
|
int tileIndex = (room.getLayout().getMapSizeY() * tile.y) + tile.x + 1;
|
||||||
if (!this.overridableTiles.contains(tileIndex)) {
|
if (!this.overridableTiles.contains(tileIndex)) {
|
||||||
this.overridableTiles.add(tileIndex);
|
this.overridableTiles.add(tileIndex);
|
||||||
|
Loading…
Reference in New Issue
Block a user