You've already forked Arcturus-Morningstar-Extended
mirror of
https://github.com/duckietm/Arcturus-Morningstar-Extended.git
synced 2026-06-19 15:06:19 +00:00
🆙 Prevent false occupancy detection in quick teleport w wireds
Fix by brenoepic
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user