🆙 Prevent false occupancy detection in quick teleport w wireds
Fix by brenoepic
This commit is contained in:
parent
d825006c33
commit
f042e0feff
@ -206,7 +206,10 @@ 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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user