Changed sitting on lowest chair to tallest chair - Fixes #449

This commit is contained in:
Beny 2020-10-15 08:43:35 +02:00
parent d652210751
commit f7d86dd8cd

View File

@ -3572,7 +3572,7 @@ public class Room implements Comparable<Room>, 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;