Tweak boundingbox for getting entity from find results.

Need a better way to get entity by UUID...
This commit is contained in:
David Vierra 2015-08-19 14:24:55 -10:00
parent e5b9c67d31
commit caa1ee2456

View File

@ -44,7 +44,7 @@ class NBTResultsEntry(object):
def getEntity(self, dim):
assert self.resultType == self.EntityResult
box = BoundingBox(self.position, (1, 1, 1)).chunkBox(dim)
box = BoundingBox(self.position.intfloor(), (1, 1, 1)).chunkBox(dim)
entities = dim.getEntities(box, UUID=self.uuid)
for entity in entities:
return entity