Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
ArpyAge 2021-10-09 00:22:44 +02:00
commit e1be700dfd

View File

@ -1672,7 +1672,7 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
} else {
if (!unit.hasStatus(RoomUnitStatus.LAY)) {
unit.setStatus(RoomUnitStatus.LAY, Item.getCurrentHeight(topItem) * 1.0D + "");
unit.setRotation(RoomUserRotation.values()[topItem.getRotation()]);
unit.setRotation(RoomUserRotation.values()[topItem.getRotation() % 4]);
if (topItem.getRotation() == 0 || topItem.getRotation() == 4) {
unit.setLocation(this.layout.getTile(unit.getX(), topItem.getY()));