Fixed Bots floating on chairs. Still need to do Rotation.

This commit is contained in:
KrewsOrg 2019-05-02 04:31:17 +01:00
parent 450dbdd65f
commit adc4c85df6

View File

@ -144,7 +144,8 @@ public class BotManager
roomUnit.setRotation(RoomUserRotation.SOUTH);
roomUnit.setLocation(location);
HabboItem topItem = room.getTopItemAt(location.x, location.y);
if (topItem != null)
if (topItem != null && !topItem.getBaseItem().allowSit())
{
roomUnit.setZ(topItem.getZ() + Item.getCurrentHeight(topItem));
}