ArcanePigeon / ProbablyChests

Other
3 stars 12 forks source link

Fix #52 bounding box not being initially updated #53

Open BlueAgent opened 1 year ago

BlueAgent commented 1 year ago

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 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.

BlueAgent commented 1 year ago

Fixed a bug introduced in the PR with the yaw not being determined by the FACING property.