mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-31 12:22:36 +01:00
Fix wrong height when rolling onto seat
This commit is contained in:
parent
60536d9fdf
commit
829f71bc0f
@ -1691,6 +1691,8 @@ public class Room implements Comparable<Room>, ISerialize, Runnable
|
||||
}
|
||||
}
|
||||
|
||||
HabboItem nextTileChair = this.getLowestChair(tileInFront);
|
||||
|
||||
for(RoomUnit unit : unitsOnTile) {
|
||||
if (rolledUnitIds.contains(unit.getId())) continue;
|
||||
|
||||
@ -1722,14 +1724,14 @@ public class Room implements Comparable<Room>, ISerialize, Runnable
|
||||
tile.setStackHeight(ridingUnit.getZ() + zOffset);
|
||||
rolledUnitIds.add(ridingUnit.getId());
|
||||
updatedUnit.remove(ridingUnit);
|
||||
messages.add(new RoomUnitOnRollerComposer(ridingUnit, roller, ridingUnit.getCurrentLocation(), ridingUnit.getZ(), tile, tile.getStackHeight(), room));
|
||||
messages.add(new RoomUnitOnRollerComposer(ridingUnit, roller, ridingUnit.getCurrentLocation(), ridingUnit.getZ(), tile, tile.getStackHeight() + (nextTileChair != null ? -1 : 0), room));
|
||||
isRiding = true;
|
||||
}
|
||||
}
|
||||
|
||||
rolledUnitIds.add(unit.getId());
|
||||
updatedUnit.remove(unit);
|
||||
messages.add(new RoomUnitOnRollerComposer(unit, roller, unit.getCurrentLocation(), unit.getZ() + (isRiding ? 1 : 0), tile, tile.getStackHeight() + (isRiding ? 1 : 0), room));
|
||||
messages.add(new RoomUnitOnRollerComposer(unit, roller, unit.getCurrentLocation(), unit.getZ() + (isRiding ? 1 : 0), tile, tile.getStackHeight() + (isRiding ? 1 : 0) + (nextTileChair != null ? -1 : 0), room));
|
||||
|
||||
if (itemsOnRoller.isEmpty())
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user