Fix banzai puck not being able to move in empty rooms

This commit is contained in:
Alejandro 2020-02-04 14:23:57 +02:00
parent 8bfaeed69d
commit 1e3067f2ce

View File

@ -124,10 +124,7 @@ public class InteractionBattleBanzaiPuck extends InteractionPushable {
@Override
public boolean validMove(Room room, RoomTile from, RoomTile to) {
if (room == null || from == null || to == null) return false;
HabboItem topItem = room.getTopItemAt(to.x, to.y, this);
return topItem != null;
return room != null && from != null && to != null;
//return !(!room.getLayout().tileWalkable(to.x, to.y) || (topItem != null && (!topItem.getBaseItem().setAllowStack() || topItem.getBaseItem().allowSit() || topItem.getBaseItem().allowLay())));
}