mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 23:46:28 +01:00
Fix moving/rotatingg furniture in the same coordinates (closes #352)
This commit is contained in:
parent
b33979e702
commit
42ebfad128
@ -4486,8 +4486,11 @@ 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(height > 40d) return FurnitureMovementError.CANT_STACK;
|
||||
|
||||
item.setX(tile.x);
|
||||
item.setY(tile.y);
|
||||
item.setZ(height);
|
||||
|
Loading…
Reference in New Issue
Block a user