dev #12
@@ -47,8 +47,8 @@ public class World implements Closeable{
|
|||||||
|
|
||||||
public void ejectPiece(Coordinate coordinate) {
|
public void ejectPiece(Coordinate coordinate) {
|
||||||
PieceEntity entity = getPiece(coordinate);
|
PieceEntity entity = getPiece(coordinate);
|
||||||
assert entity != null;
|
if (entity != null)
|
||||||
this.entites.remove(entity);
|
this.entites.remove(entity);
|
||||||
setPieceCoords(null, coordinate);
|
setPieceCoords(null, coordinate);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user