From 1c42bb9a5954712b04515dabd8dd4beb915cd571 Mon Sep 17 00:00:00 2001 From: Alejandro <25-alejandro@users.noreply.git.krews.org> Date: Sun, 12 May 2019 14:45:50 -0400 Subject: [PATCH] Fix beds on rotate --- src/main/java/com/eu/habbo/habbohotel/rooms/Room.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/com/eu/habbo/habbohotel/rooms/Room.java b/src/main/java/com/eu/habbo/habbohotel/rooms/Room.java index 3e55ed05..6a850015 100644 --- a/src/main/java/com/eu/habbo/habbohotel/rooms/Room.java +++ b/src/main/java/com/eu/habbo/habbohotel/rooms/Room.java @@ -850,7 +850,7 @@ public class Room implements Comparable, 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, 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