Merge branch '51-roller-no-rules-doesn-t-work' into 'dev'

Resolve "Roller No Rules doesn't work."

See merge request morningstar/Arcturus-Community!13
This commit is contained in:
Harmonic 2019-05-08 21:02:17 -04:00
commit d08795159f

View File

@ -1596,7 +1596,9 @@ public class Room implements Comparable<Room>, ISerialize, Runnable
for(HabboItem item : getItemsAt(rollerTile))
{
itemsOnRoller.add(item);
if(item.getZ() >= roller.getZ() + roller.getBaseItem().getHeight()) {
itemsOnRoller.add(item);
}
}
itemsOnRoller.remove(roller);
@ -1612,7 +1614,6 @@ public class Room implements Comparable<Room>, ISerialize, Runnable
if (tileInFront == null)
return true;
if (!Room.this.layout.tileExists(tileInFront.x, tileInFront.y))
return true;
@ -1758,7 +1759,7 @@ public class Room implements Comparable<Room>, ISerialize, Runnable
messages.clear();
}
if ((allowFurniture || !stackContainsRoller) && !InteractionRoller.NO_RULES)
if (allowFurniture || !stackContainsRoller || InteractionRoller.NO_RULES)
{
Event furnitureRolledEvent = null;