Don't sleep near monsters

This commit is contained in:
2020-12-12 21:11:00 +00:00
parent 86846a5c02
commit af88f68e66
3 changed files with 11 additions and 4 deletions
+2 -1
View File
@@ -906,8 +906,9 @@ class ClearLeavesStates:
def find_leaves(self):
w = self.g.world
p = utils.pint(self.g.pos)
pos = utils.padd(p, path.BLOCK_ABOVE)
for l in w.find_leaves(p, blocks.BREAK_DISTANCE):
for l in w.find_leaves(pos, blocks.BREAK_DISTANCE):
self.leaves.append(l)
self.state = self.break_leaves