mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-31 12:22:36 +01:00
Merge branch 'dev' into 'subscription-boxes'
# Conflicts: # sqlupdates/2_0_0-RC-2_TO_2_0_0-RC-3.sql
This commit is contained in:
commit
017e269062
@ -119,7 +119,7 @@ public class WiredEffectTriggerStacks extends InteractionWiredEffect
|
||||
@Override
|
||||
public boolean execute(RoomUnit roomUnit, Room room, Object[] stuff)
|
||||
{
|
||||
if (stuff.length >= 1 && stuff[stuff.length - 1] instanceof WiredEffectTriggerStacks)
|
||||
if (stuff != null && stuff.length >= 1 && stuff[stuff.length - 1] instanceof WiredEffectTriggerStacks)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -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