mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 23:46:28 +01:00
fix: Prevent false occupancy detection in quick teleport w wireds
This commit is contained in:
parent
112e1ff377
commit
eb2ecd7132
@ -205,8 +205,11 @@ public class RoomTile {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasUnits() {
|
public boolean hasUnits() {
|
||||||
synchronized (this.units) {
|
synchronized(this.units) {
|
||||||
return this.units.size() > 0;
|
if (!this.units.isEmpty()) {
|
||||||
|
this.units.removeIf(unit -> !unit.getCurrentLocation().equals(this));
|
||||||
|
}
|
||||||
|
return !this.units.isEmpty();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user