Tweak boundingbox for getting entity from find results.
Need a better way to get entity by UUID...
This commit is contained in:
parent
e5b9c67d31
commit
caa1ee2456
@ -44,7 +44,7 @@ class NBTResultsEntry(object):
|
|||||||
|
|
||||||
def getEntity(self, dim):
|
def getEntity(self, dim):
|
||||||
assert self.resultType == self.EntityResult
|
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)
|
entities = dim.getEntities(box, UUID=self.uuid)
|
||||||
for entity in entities:
|
for entity in entities:
|
||||||
return entity
|
return entity
|
||||||
|
Reference in New Issue
Block a user