mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-26 16:30:52 +01:00
Learn to code John - Beny.
This commit is contained in:
parent
125164d3cd
commit
c634906234
@ -145,15 +145,9 @@ public class BotManager
|
||||
roomUnit.setLocation(location);
|
||||
HabboItem topItem = room.getTopItemAt(location.x, location.y);
|
||||
|
||||
if (topItem != null && !topItem.getBaseItem().allowSit())
|
||||
{
|
||||
roomUnit.setZ(topItem.getZ() + Item.getCurrentHeight(topItem));
|
||||
}
|
||||
if (topItem != null )
|
||||
roomUnit.setZ(topItem.getBaseItem().allowSit() ? topItem.getZ() : topItem.getZ() + Item.getCurrentHeight(topItem));
|
||||
|
||||
if (topItem.getBaseItem().allowSit())
|
||||
{
|
||||
roomUnit.setZ(topItem.getZ());
|
||||
}
|
||||
roomUnit.setPreviousLocationZ(roomUnit.getZ());
|
||||
roomUnit.setPathFinderRoom(room);
|
||||
roomUnit.setRoomUnitType(RoomUnitType.BOT);
|
||||
|
Loading…
Reference in New Issue
Block a user