Skip to content

Commit

Permalink
fix hitbox issues on newer versions of minecraft
Browse files Browse the repository at this point in the history
  • Loading branch information
SilkePilon committed Jul 8, 2024
1 parent 88444cd commit deee9e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function Physics (mcData, world) {
if (block) {
const blockPos = block.position
for (const shape of block.shapes) {
const blockBB = new AABB(shape[0], shape[1], shape[2], shape[3], shape[4], shape[5])
const blockBB = new AABB(shape[0] - 0.01, shape[1], shape[2] - 0.01, shape[3] + 0.01, shape[4], shape[5] + 0.01)
blockBB.offset(blockPos.x, blockPos.y, blockPos.z)
surroundingBBs.push(blockBB)
}
Expand Down

0 comments on commit deee9e6

Please sign in to comment.