Pehkui changes the interaction range to be calculated between the eye and bounding box rather than the eye and entity position.
It turns out that when initially creating the chest mimic entity, the bounding box was not being updated.
Using refreshPositionAndAngles() instead, updates the bounding box as expected (it ends up running this.setBoundingBox(this.calculateBoundingBox())).
Without Pehkui installed, there's a more minor bug that this fixes, where newly created pet mimics will not have collision.
Fixes #52.
Pehkui changes the interaction range to be calculated between the eye and bounding box rather than the eye and entity position. It turns out that when initially creating the chest mimic entity, the bounding box was not being updated. Using
refreshPositionAndAngles()
instead, updates the bounding box as expected (it ends up runningthis.setBoundingBox(this.calculateBoundingBox())
).Without Pehkui installed, there's a more minor bug that this fixes, where newly created pet mimics will not have collision.