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