From adc4c85df6501ecf0635c113f49f515f3dfd7f74 Mon Sep 17 00:00:00 2001 From: KrewsOrg Date: Thu, 2 May 2019 04:31:17 +0100 Subject: [PATCH] Fixed Bots floating on chairs. Still need to do Rotation. --- src/main/java/com/eu/habbo/habbohotel/bots/BotManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/eu/habbo/habbohotel/bots/BotManager.java b/src/main/java/com/eu/habbo/habbohotel/bots/BotManager.java index e40629b1..d1a8d7e8 100644 --- a/src/main/java/com/eu/habbo/habbohotel/bots/BotManager.java +++ b/src/main/java/com/eu/habbo/habbohotel/bots/BotManager.java @@ -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)); }