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