mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 15:36:27 +01:00
Fix beds on rotate
This commit is contained in:
parent
cdd31e87a4
commit
1c42bb9a59
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user