@Override public void removeEntity(Entity entity) { this.entities.remove(entity.getId()); if (!(entity instanceof Player) && this.isInit) { this.hasChanged = true; } }
@Override public void addEntity(Entity entity) { this.entities.put(entity.getId(), entity); if (!(entity instanceof Player) && this.isInit) { this.hasChanged = true; } }