From f7d86dd8cd48e431647cf79f0df6cda2fb346810 Mon Sep 17 00:00:00 2001 From: Beny Date: Thu, 15 Oct 2020 08:43:35 +0200 Subject: [PATCH] Changed sitting on lowest chair to tallest chair - Fixes #449 --- src/main/java/com/eu/habbo/habbohotel/rooms/Room.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 f1eda589..53146f4d 100644 --- a/src/main/java/com/eu/habbo/habbohotel/rooms/Room.java +++ b/src/main/java/com/eu/habbo/habbohotel/rooms/Room.java @@ -3572,7 +3572,7 @@ public class Room implements Comparable, ISerialize, Runnable { if(!item.getBaseItem().allowSit()) continue; - if(lowestChair != null && lowestChair.getZ() + Item.getCurrentHeight(lowestChair) < item.getZ() + Item.getCurrentHeight(item)) + if(lowestChair != null && lowestChair.getZ() + Item.getCurrentHeight(lowestChair) > item.getZ() + Item.getCurrentHeight(item)) continue; lowestChair = item;