mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-04 16:49:11 +00:00
Remove leftover debug code in Sector.
This commit is contained in:
@@ -162,21 +162,16 @@ public final class Sector {
|
|||||||
* @throws IllegalArgumentException If the entity does not belong in this sector, or if it was never added.
|
* @throws IllegalArgumentException If the entity does not belong in this sector, or if it was never added.
|
||||||
*/
|
*/
|
||||||
public void removeEntity(Entity entity) {
|
public void removeEntity(Entity entity) {
|
||||||
try {
|
Position position = entity.getPosition();
|
||||||
Position position = entity.getPosition();
|
checkPosition(position);
|
||||||
checkPosition(position);
|
|
||||||
|
|
||||||
Set<Entity> local = entities.get(position);
|
Set<Entity> local = entities.get(position);
|
||||||
|
|
||||||
if (local == null || !local.remove(entity)) {
|
if (local == null || !local.remove(entity)) {
|
||||||
throw new IllegalArgumentException("Entity belongs in this sector but does not exist.");
|
throw new IllegalArgumentException("Entity belongs in this sector but does not exist.");
|
||||||
}
|
|
||||||
|
|
||||||
notifyListeners(entity, SectorOperation.REMOVE);
|
|
||||||
} catch (Exception e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
throw e;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
notifyListeners(entity, SectorOperation.REMOVE);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user