🆙 Rollback of the Wired Condition Furni Have Habbo, fixed in Nitro

This commit is contained in:
duckietm 2024-07-12 09:20:53 +02:00
parent fce552942c
commit 505d2144fb
2 changed files with 6 additions and 2 deletions

View File

@ -50,10 +50,14 @@ public class WiredConditionFurniHaveHabbo extends InteractionWiredCondition {
return true;
Collection<Habbo> habbos = room.getHabbos();
Collection<Bot> bots = room.getCurrentBots().valueCollection();
Collection<Pet> pets = room.getCurrentPets().valueCollection();
return this.items.stream().anyMatch(item -> {
return this.items.stream().allMatch(item -> {
THashSet<RoomTile> occupiedTiles = room.getLayout().getTilesAt(room.getLayout().getTile(item.getX(), item.getY()), item.getBaseItem().getWidth(), item.getBaseItem().getLength(), item.getRotation());
return habbos.stream().anyMatch(character -> occupiedTiles.contains(character.getRoomUnit().getCurrentLocation()));
return habbos.stream().anyMatch(character -> occupiedTiles.contains(character.getRoomUnit().getCurrentLocation())) ||
bots.stream().anyMatch(character -> occupiedTiles.contains(character.getRoomUnit().getCurrentLocation())) ||
pets.stream().anyMatch(character -> occupiedTiles.contains(character.getRoomUnit().getCurrentLocation()));
});
}