mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-31 04:12:37 +01:00
Merge branch 'activate-pressureplate-on-bot' into 'ms4/dev'
Make bots trigger pressureplate just like Habbo See merge request morningstar/Arcturus-Community!56
This commit is contained in:
commit
dac0a187cc
@ -82,13 +82,13 @@ public class InteractionPressurePlate extends InteractionDefault {
|
|||||||
if (tiles == null) return;
|
if (tiles == null) return;
|
||||||
|
|
||||||
for (RoomTile tile : tiles) {
|
for (RoomTile tile : tiles) {
|
||||||
boolean hasHabbos = room.hasHabbosAt(tile.getX(), tile.getY());
|
THashSet<RoomUnit> tileHasHabboOrBot = room.getHabbosAndBotsAt(tile.getX(), tile.getY());
|
||||||
if (!hasHabbos && this.requiresAllTilesOccupied()) {
|
if (tileHasHabboOrBot.isEmpty() && this.requiresAllTilesOccupied()) {
|
||||||
occupied = false;
|
occupied = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hasHabbos) {
|
if (!tileHasHabboOrBot.isEmpty()) {
|
||||||
occupied = true;
|
occupied = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user