mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-02-07 15:12:35 +01:00
Roller fixes.
This commit is contained in:
parent
2300c006fd
commit
3cbb9f5bd8
@ -1575,7 +1575,14 @@ public class Room implements Comparable<Room>, ISerialize, Runnable
|
|||||||
THashSet<HabboItem> itemsOnRoller = new THashSet<>();
|
THashSet<HabboItem> itemsOnRoller = new THashSet<>();
|
||||||
|
|
||||||
RoomTile rollerTile = Room.this.layout.getTile(roller.getX(), roller.getY());
|
RoomTile rollerTile = Room.this.layout.getTile(roller.getX(), roller.getY());
|
||||||
itemsOnRoller.addAll(this.getItemsAt(rollerTile));
|
for(HabboItem item : getItemsAt(rollerTile))
|
||||||
|
{
|
||||||
|
if(item.getZ() >= roller.getZ() + Item.getCurrentHeight(roller)) {
|
||||||
|
itemsOnRoller.add(item);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// itemsOnRoller.addAll(this.getItemsAt(rollerTile));
|
||||||
itemsOnRoller.remove(roller);
|
itemsOnRoller.remove(roller);
|
||||||
|
|
||||||
if (habbosOnRoller.isEmpty() && itemsOnRoller.isEmpty() && botsOnRoller.isEmpty())
|
if (habbosOnRoller.isEmpty() && itemsOnRoller.isEmpty() && botsOnRoller.isEmpty())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user