mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-27 08:50:51 +01:00
Fix banzai puck not being able to move in empty rooms
This commit is contained in:
parent
8bfaeed69d
commit
1e3067f2ce
@ -124,10 +124,7 @@ public class InteractionBattleBanzaiPuck extends InteractionPushable {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean validMove(Room room, RoomTile from, RoomTile to) {
|
public boolean validMove(Room room, RoomTile from, RoomTile to) {
|
||||||
if (room == null || from == null || to == null) return false;
|
return room != null && from != null && to != null;
|
||||||
|
|
||||||
HabboItem topItem = room.getTopItemAt(to.x, to.y, this);
|
|
||||||
return topItem != null;
|
|
||||||
//return !(!room.getLayout().tileWalkable(to.x, to.y) || (topItem != null && (!topItem.getBaseItem().setAllowStack() || topItem.getBaseItem().allowSit() || topItem.getBaseItem().allowLay())));
|
//return !(!room.getLayout().tileWalkable(to.x, to.y) || (topItem != null && (!topItem.getBaseItem().setAllowStack() || topItem.getBaseItem().allowSit() || topItem.getBaseItem().allowLay())));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user