aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0904-Add-predicate-for-blocks-when-raytracing.patch
diff options
context:
space:
mode:
authorJason Penilla <[email protected]>2024-07-28 14:51:40 -0700
committerJason Penilla <[email protected]>2024-07-28 14:51:40 -0700
commitf98453d09caf44fdb88dc022413078daf4959bbb (patch)
tree9c8dbeb2bbb8c8b41b3a51e8d1c4523c0314e7e4 /patches/server/0904-Add-predicate-for-blocks-when-raytracing.patch
parent5af4925b08498907297f2060c5b259c79d9593d2 (diff)
downloadPaper-fix/vanillabiomeprovider.tar.gz
Paper-fix/vanillabiomeprovider.zip
unwrap more wrappersfix/vanillabiomeprovider
Diffstat (limited to 'patches/server/0904-Add-predicate-for-blocks-when-raytracing.patch')
-rw-r--r--patches/server/0904-Add-predicate-for-blocks-when-raytracing.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/patches/server/0904-Add-predicate-for-blocks-when-raytracing.patch b/patches/server/0904-Add-predicate-for-blocks-when-raytracing.patch
index 90b7ac4253..43a753b5c2 100644
--- a/patches/server/0904-Add-predicate-for-blocks-when-raytracing.patch
+++ b/patches/server/0904-Add-predicate-for-blocks-when-raytracing.patch
@@ -47,10 +47,10 @@ index c978f3b2d42f512e982f289e76c2422e41b7eec6..bb8e962e63c7a2d931f9bd7f7c002aa3
Vec3 vec3d = raytrace1.getFrom().subtract(raytrace1.getTo());
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
-index d5f4b9ddb5c95b2a62ece8c2f148f8146838c027..d0b25eb17cb66406bdc9c3696f3b2a63d4a9317e 100644
+index 28458a499702989d640d88de8fa7e8861be95189..166458785b507208caa7ecf8ee8b60650ca3523a 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
-@@ -1100,9 +1100,15 @@ public class CraftWorld extends CraftRegionAccessor implements World {
+@@ -1104,9 +1104,15 @@ public class CraftWorld extends CraftRegionAccessor implements World {
@Override
public RayTraceResult rayTraceEntities(Location start, Vector direction, double maxDistance, double raySize, Predicate<? super Entity> filter) {
@@ -68,7 +68,7 @@ index d5f4b9ddb5c95b2a62ece8c2f148f8146838c027..d0b25eb17cb66406bdc9c3696f3b2a63
Preconditions.checkArgument(direction != null, "Vector direction cannot be null");
direction.checkFinite();
-@@ -1152,9 +1158,16 @@ public class CraftWorld extends CraftRegionAccessor implements World {
+@@ -1156,9 +1162,16 @@ public class CraftWorld extends CraftRegionAccessor implements World {
@Override
public RayTraceResult rayTraceBlocks(Location start, Vector direction, double maxDistance, FluidCollisionMode fluidCollisionMode, boolean ignorePassableBlocks) {
@@ -87,7 +87,7 @@ index d5f4b9ddb5c95b2a62ece8c2f148f8146838c027..d0b25eb17cb66406bdc9c3696f3b2a63
Preconditions.checkArgument(direction != null, "Vector direction cannot be null");
direction.checkFinite();
-@@ -1167,16 +1180,23 @@ public class CraftWorld extends CraftRegionAccessor implements World {
+@@ -1171,16 +1184,23 @@ public class CraftWorld extends CraftRegionAccessor implements World {
}
Vector dir = direction.clone().normalize().multiply(maxDistance);