mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-12-06 03:07:19 +00:00
Remove leftover debug code in Sector.
This commit is contained in:
1 parent
e5fb8a9529
commit
640032a06e
1 file changed
+7
-12
@@ -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.
|
||||
*/
|
||||
public void removeEntity(Entity entity) {
|
||||
try {
|
||||
Position position = entity.getPosition();
|
||||
checkPosition(position);
|
||||
Position position = entity.getPosition();
|
||||
checkPosition(position);
|
||||
|
||||
Set<Entity> local = entities.get(position);
|
||||
Set<Entity> local = entities.get(position);
|
||||
|
||||
if (local == null || !local.remove(entity)) {
|
||||
throw new IllegalArgumentException("Entity belongs in this sector but does not exist.");
|
||||
}
|
||||
|
||||
notifyListeners(entity, SectorOperation.REMOVE);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
throw e;
|
||||
if (local == null || !local.remove(entity)) {
|
||||
throw new IllegalArgumentException("Entity belongs in this sector but does not exist.");
|
||||
}
|
||||
|
||||
notifyListeners(entity, SectorOperation.REMOVE);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user