mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-22 23:10:52 +01:00
Merge branch 'bed-fix' into 'dev'
Fix beds on rotate See merge request morningstar/Arcturus-Community!26
This commit is contained in:
commit
22c6de843e
@ -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