mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-07-04 14:25:32 +02:00
Fixed Bots floating on chairs. Still need to do Rotation.
This commit is contained in:
parent
450dbdd65f
commit
adc4c85df6
|
@ -144,7 +144,8 @@ public class BotManager
|
||||||
roomUnit.setRotation(RoomUserRotation.SOUTH);
|
roomUnit.setRotation(RoomUserRotation.SOUTH);
|
||||||
roomUnit.setLocation(location);
|
roomUnit.setLocation(location);
|
||||||
HabboItem topItem = room.getTopItemAt(location.x, location.y);
|
HabboItem topItem = room.getTopItemAt(location.x, location.y);
|
||||||
if (topItem != null)
|
|
||||||
|
if (topItem != null && !topItem.getBaseItem().allowSit())
|
||||||
{
|
{
|
||||||
roomUnit.setZ(topItem.getZ() + Item.getCurrentHeight(topItem));
|
roomUnit.setZ(topItem.getZ() + Item.getCurrentHeight(topItem));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user