mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-22 23:10:52 +01:00
Enable bots to trigger pressure-plates
This commit is contained in:
parent
0a6355996a
commit
e70e75b87e
@ -85,15 +85,16 @@ public class InteractionPressurePlate extends InteractionDefault {
|
||||
if (tiles == null) return;
|
||||
|
||||
for (RoomTile tile : tiles) {
|
||||
boolean hasHabbos = room.hasHabbosAt(tile.x, tile.y);
|
||||
if (!hasHabbos && this.requiresAllTilesOccupied()) {
|
||||
THashSet<RoomUnit> tileHasHabboOrBot = room.getHabbosAndBotsAt(tile.x, tile.y);
|
||||
if (tileHasHabboOrBot.isEmpty() && this.requiresAllTilesOccupied()) {
|
||||
occupied = false;
|
||||
break;
|
||||
}
|
||||
|
||||
if (hasHabbos) {
|
||||
if (!tileHasHabboOrBot.isEmpty()) {
|
||||
occupied = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
this.setExtradata(occupied ? "1" : "0");
|
||||
|
Loading…
Reference in New Issue
Block a user