This commit is contained in:
2020-12-19 08:56:17 +00:00
parent cdd71d2610
commit 25cc638465
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -288,7 +288,7 @@ class MCWorld:
def find_monsters(self, center, distance):
# finds monsters within distance
result = []
for eid, mob in self.g.mobs.items():
for eid, mob in copy(self.g.mobs).items():
if mob.type not in mobs.EVIL_IDS:
continue
pos = utils.pint((mob.x, mob.y, mob.z))