Lol. Fixed Bots on Chairs when they're on higher room tiles.

This commit is contained in:
KrewsOrg 2019-05-04 00:53:56 +01:00
parent 586ed03d9d
commit 125164d3cd

View File

@ -149,6 +149,11 @@ public class BotManager
{
roomUnit.setZ(topItem.getZ() + Item.getCurrentHeight(topItem));
}
if (topItem.getBaseItem().allowSit())
{
roomUnit.setZ(topItem.getZ());
}
roomUnit.setPreviousLocationZ(roomUnit.getZ());
roomUnit.setPathFinderRoom(room);
roomUnit.setRoomUnitType(RoomUnitType.BOT);