Fix furni not jumping on top if not on top already

This commit is contained in:
Alejandro 2020-02-01 12:54:59 +02:00
parent 899d6cd95a
commit ff2256f30a

View File

@ -4488,7 +4488,7 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
//Place at new position
double height = this.getStackHeight(tile.x, tile.y, false, item);
if (tile.x == item.getX() && tile.y == item.getY()) height = item.getZ();
if (item.equals(topItem) && tile.x == item.getX() && tile.y == item.getY()) height = item.getZ();
if(height > 40d) return FurnitureMovementError.CANT_STACK;
item.setX(tile.x);