mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 15:36:27 +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() {
|
||||
synchronized (this.units) {
|
||||
return this.units.size() > 0;
|
||||
synchronized(this.units) {
|
||||
if (!this.units.isEmpty()) {
|
||||
this.units.removeIf(unit -> !unit.getCurrentLocation().equals(this));
|
||||
}
|
||||
return !this.units.isEmpty();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user