aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOwen <[email protected]>2022-09-19 22:02:52 -0400
committerGitHub <[email protected]>2022-09-20 03:02:52 +0100
commitad3dffe715cef9e4de62af281c86bb198b3356c7 (patch)
treefe1ab307dffaac9ee7604ef2eaec51c575ae9ecc
parentf7e68091a05b66796f528648907a756a7efe90da (diff)
downloadPaper-ad3dffe715cef9e4de62af281c86bb198b3356c7.tar.gz
Paper-ad3dffe715cef9e4de62af281c86bb198b3356c7.zip
Respect preventMovingIntoUnloadedChunks for optimized collision checking (#8259)
-rw-r--r--patches/server/0799-Highly-optimise-single-and-multi-AABB-VoxelShapes-an.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/patches/server/0799-Highly-optimise-single-and-multi-AABB-VoxelShapes-an.patch b/patches/server/0799-Highly-optimise-single-and-multi-AABB-VoxelShapes-an.patch
index 25285e3f66..331f9d5be1 100644
--- a/patches/server/0799-Highly-optimise-single-and-multi-AABB-VoxelShapes-an.patch
+++ b/patches/server/0799-Highly-optimise-single-and-multi-AABB-VoxelShapes-an.patch
@@ -1326,7 +1326,7 @@ index 036894c89e6dcc98b4e53c859d531163ed155a32..4f19b25518d92c05a1ae49be905abe7d
- if (vec3d2.horizontalDistanceSqr() > vec3d1.horizontalDistanceSqr()) {
- return vec3d2.add(Entity.collideBoundingBox(this, new Vec3(0.0D, -vec3d2.y + movement.y, 0.0D), axisalignedbb.move(vec3d2), this.level, list));
-+ io.papermc.paper.util.CollisionUtil.getCollisions(world, this, collisionBox, potentialCollisions, false, true,
++ io.papermc.paper.util.CollisionUtil.getCollisions(world, this, collisionBox, potentialCollisions, false, this.level.paperConfig().chunks.preventMovingIntoUnloadedChunks,
+ false, false, null, null);
+
+ if (io.papermc.paper.util.CollisionUtil.isCollidingWithBorderEdge(world.getWorldBorder(), collisionBox)) {