Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure shulker bounding box is updated
A previous paper patch introduced bounding box reuse for entities on position updates if the x,y and z coordinate did not change. While this reusing in itself works fine, shulkers do update their bounding box without actually changing their x,y and z coordinates which is not respected due to the old bounding box being reused. This commit fixes this issue by manually updating the shulker bounding box after reapplying the position. Another alternative solution would have been an exception specifically made for shulkers to ignore the reuse logic, tho this would introduce a new instanceOf check into the Entity#setPosRaw method and would be evaulated for every type of entity. See also: https://github.com/PaperMC/Paper/blob/master/patches/server/0467-Ensure-Entity-AABB-s-are-never-invalid.patch Resolves: 5915
- Loading branch information