aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0996-Strip-raytracing-for-EntityLiving-hasLineOfSight.patch
diff options
context:
space:
mode:
authorSpottedleaf <[email protected]>2024-07-15 09:56:17 -0700
committerSpottedleaf <[email protected]>2024-07-15 09:56:17 -0700
commit8b230185755c54a85194d85461f0a4262185c10c (patch)
treef06a0ae7a6c435c612df3fc3e092f5886f99c0ad /patches/server/0996-Strip-raytracing-for-EntityLiving-hasLineOfSight.patch
parentaa929d66667e58929097dee3fd9499095c989392 (diff)
downloadPaper-8b230185755c54a85194d85461f0a4262185c10c.tar.gz
Paper-8b230185755c54a85194d85461f0a4262185c10c.zip
Avoid collision shapes outside world border in findFreePosition
This is to correctly adhere to Vanilla behavior.
Diffstat (limited to 'patches/server/0996-Strip-raytracing-for-EntityLiving-hasLineOfSight.patch')
-rw-r--r--patches/server/0996-Strip-raytracing-for-EntityLiving-hasLineOfSight.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0996-Strip-raytracing-for-EntityLiving-hasLineOfSight.patch b/patches/server/0996-Strip-raytracing-for-EntityLiving-hasLineOfSight.patch
index 6c404fd257..4abadd89c1 100644
--- a/patches/server/0996-Strip-raytracing-for-EntityLiving-hasLineOfSight.patch
+++ b/patches/server/0996-Strip-raytracing-for-EntityLiving-hasLineOfSight.patch
@@ -62,10 +62,10 @@ index bb8e962e63c7a2d931f9bd7f7c002aa35cfa5fd3..0fa131a6c98adb498fc8d534e0e39647
default BlockHitResult clip(ClipContext raytrace1, BlockPos blockposition) {
// Paper start - Add predicate for blocks when raytracing
diff --git a/src/main/java/net/minecraft/world/level/Level.java b/src/main/java/net/minecraft/world/level/Level.java
-index 78dc1e76a579d135dd0eee989acc9f7de2fd5996..559855092c375db066cad35018958718014633ff 100644
+index b5f0590e85b00b728f833f7c17ca1c1cf57957cd..6b7f61d0418cc1203726d4bb99ba0a996539b9c4 100644
--- a/src/main/java/net/minecraft/world/level/Level.java
+++ b/src/main/java/net/minecraft/world/level/Level.java
-@@ -774,10 +774,87 @@ public abstract class Level implements LevelAccessor, AutoCloseable, ca.spottedl
+@@ -784,10 +784,87 @@ public abstract class Level implements LevelAccessor, AutoCloseable, ca.spottedl
return null;
}