def remove_entity(self, entity):
        if entity in self.entities:
            del entity.instance
            self.entities.remove(entity)
            if not self.entities:
                self.clear_rooms()
                if entity.group:
                    entity.group.instance = None
            del instance_map[self.instance_id]
dataset/ETHPy150Open genzgd/Lampost-Mud/lampost/env/instance.py/AreaInstance.remove_entity/original