Fixed WiredEffectMatchFurni to no longer send furniture under users. (Like Habbo)

This commit is contained in:
harmonic 2020-06-05 17:30:54 +01:00
parent d1f811ad94
commit f00c5136cd

View File

@ -89,11 +89,12 @@ public class WiredEffectMatchFurni extends InteractionWiredEffect {
if (t != null && t.state != RoomTileState.INVALID) {
boolean canMove = true;
if (t.x == item.getX() && t.y == item.getY()) {
if (t.x == item.getX() && t.y == item.getY() || room.hasHabbosAt(t.x, t.y)) {
canMove = !(room.getTopItemAt(t.x, t.y) == item);
slideAnimation = false;
}
if (canMove && !room.hasHabbosAt(t.x, t.y)) {
THashSet<RoomTile> tiles = room.getLayout().getTilesAt(t, item.getBaseItem().getWidth(), item.getBaseItem().getLength(), setting.rotation);
double highestZ = -1d;