mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 23:46:28 +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 != null)
|
||||||
{
|
{
|
||||||
if(item.getBaseItem().allowSit())
|
if(item.getBaseItem().allowSit() || item.getBaseItem().allowLay())
|
||||||
{
|
{
|
||||||
habbo.getRoomUnit().setZ(item.getZ());
|
habbo.getRoomUnit().setZ(item.getZ());
|
||||||
habbo.getRoomUnit().setPreviousLocationZ(item.getZ());
|
habbo.getRoomUnit().setPreviousLocationZ(item.getZ());
|
||||||
@ -859,11 +859,6 @@ public class Room implements Comparable<Room>, ISerialize, Runnable
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
habbo.getRoomUnit().setZ(item.getZ() + Item.getCurrentHeight(item));
|
habbo.getRoomUnit().setZ(item.getZ() + Item.getCurrentHeight(item));
|
||||||
|
|
||||||
if (item.getBaseItem().allowLay())
|
|
||||||
{
|
|
||||||
habbo.getRoomUnit().setStatus(RoomUnitStatus.LAY, (item.getZ() + Item.getCurrentHeight(item)) + "");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user