diff --git a/src/org/apollo/game/model/area/Sector.java b/src/org/apollo/game/model/area/Sector.java index 7f9f63eb..a8c140fc 100644 --- a/src/org/apollo/game/model/area/Sector.java +++ b/src/org/apollo/game/model/area/Sector.java @@ -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 local = entities.get(position); + Set 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); } } \ No newline at end of file