Boxes now cannot be put on walls -- and other places, where they don't belong
fixes #8
This commit is contained in:
parent
6700c33b8d
commit
cb99f84ded
@ -22,9 +22,12 @@ public class Player extends PlayerBase {
|
||||
}
|
||||
|
||||
public void boxDrop() {
|
||||
currentTile.getAdjacentTile(facingDirection).putABox(boxLifted);
|
||||
Tile target = currentTile.getAdjacentTile(facingDirection);
|
||||
if(target.isSteppable()) {
|
||||
target.putABox(boxLifted);
|
||||
boxLifted = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void pickZPM(Tile tile) {
|
||||
|
Loading…
Reference in New Issue
Block a user