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,8 +22,11 @@ public class Player extends PlayerBase {
|
||||
}
|
||||
|
||||
public void boxDrop() {
|
||||
currentTile.getAdjacentTile(facingDirection).putABox(boxLifted);
|
||||
boxLifted = null;
|
||||
Tile target = currentTile.getAdjacentTile(facingDirection);
|
||||
if(target.isSteppable()) {
|
||||
target.putABox(boxLifted);
|
||||
boxLifted = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user