diff options
author | MiniDigger | Martin <[email protected]> | 2024-01-14 11:04:49 +0100 |
---|---|---|
committer | MiniDigger | Martin <[email protected]> | 2024-01-14 11:04:49 +0100 |
commit | bee74680e607c2e29b038329f62181238911cd83 (patch) | |
tree | 708fd1a4a0227d9071243adf2a42d5e9e96cde4a /patch-remap/og/net/minecraft/world/level/RayTrace.patch | |
parent | 0a44692ef6ff6e255d48eb3ba1bb114166eafda9 (diff) | |
download | Paper-softspoon.tar.gz Paper-softspoon.zip |
add remapped patches as a testsoftspoon
Diffstat (limited to 'patch-remap/og/net/minecraft/world/level/RayTrace.patch')
-rw-r--r-- | patch-remap/og/net/minecraft/world/level/RayTrace.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/world/level/RayTrace.patch b/patch-remap/og/net/minecraft/world/level/RayTrace.patch new file mode 100644 index 0000000000..c6598f3aa2 --- /dev/null +++ b/patch-remap/og/net/minecraft/world/level/RayTrace.patch @@ -0,0 +1,20 @@ +--- a/net/minecraft/world/level/RayTrace.java ++++ b/net/minecraft/world/level/RayTrace.java +@@ -22,7 +22,7 @@ + private final VoxelShapeCollision collisionContext; + + public RayTrace(Vec3D vec3d, Vec3D vec3d1, RayTrace.BlockCollisionOption raytrace_blockcollisionoption, RayTrace.FluidCollisionOption raytrace_fluidcollisionoption, Entity entity) { +- this(vec3d, vec3d1, raytrace_blockcollisionoption, raytrace_fluidcollisionoption, VoxelShapeCollision.of(entity)); ++ this(vec3d, vec3d1, raytrace_blockcollisionoption, raytrace_fluidcollisionoption, (entity == null) ? VoxelShapeCollision.empty() : VoxelShapeCollision.of(entity)); // CraftBukkit + } + + public RayTrace(Vec3D vec3d, Vec3D vec3d1, RayTrace.BlockCollisionOption raytrace_blockcollisionoption, RayTrace.FluidCollisionOption raytrace_fluidcollisionoption, VoxelShapeCollision voxelshapecollision) { +@@ -79,7 +79,7 @@ + + private final Predicate<Fluid> canPick; + +- private FluidCollisionOption(Predicate predicate) { ++ private FluidCollisionOption(Predicate<Fluid> predicate) { // CraftBukkit - decompile error + this.canPick = predicate; + } + |