while (iter.hasNext()) {
EntityMap map = iter.next().get();
if (map == null) {
iter.remove();
} else if (!map.isEmpty()) {
map.keySet().removeAll(removed);
}
}
// Fire events
if (CommonUtil.hasHandlers(EntityRemoveFromServerEvent.getHandlerList())) {
for (org.bukkit.entity.Entity e : removed) {