Fix beds on rotate

This commit is contained in:
Alejandro 2019-05-12 14:45:50 -04:00 committed by Beny
parent cdd31e87a4
commit 1c42bb9a59

View File

@ -850,7 +850,7 @@ public class Room implements Comparable<Room>, ISerialize, Runnable
if(item != null)
{
if(item.getBaseItem().allowSit())
if(item.getBaseItem().allowSit() || item.getBaseItem().allowLay())
{
habbo.getRoomUnit().setZ(item.getZ());
habbo.getRoomUnit().setPreviousLocationZ(item.getZ());
@ -859,11 +859,6 @@ public class Room implements Comparable<Room>, ISerialize, Runnable
else
{
habbo.getRoomUnit().setZ(item.getZ() + Item.getCurrentHeight(item));
if (item.getBaseItem().allowLay())
{
habbo.getRoomUnit().setStatus(RoomUnitStatus.LAY, (item.getZ() + Item.getCurrentHeight(item)) + "");
}
}
}
else