fix null error
This commit is contained in:
@@ -47,7 +47,7 @@ public class World implements Closeable{
|
||||
|
||||
public void ejectPiece(Coordinate coordinate) {
|
||||
PieceEntity entity = getPiece(coordinate);
|
||||
assert entity != null;
|
||||
if (entity != null)
|
||||
this.entites.remove(entity);
|
||||
setPieceCoords(null, coordinate);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user