PaperMC/paper-server/nms-patches/net/minecraft/world/level/RayTrace.patch
CraftBukkit/Spigot 9da047989c Repackage NMS
By: md_5 <git@md-5.net>
2021-03-16 09:00:00 +11:00

20 lines
714 B
Diff

--- a/net/minecraft/world/level/RayTrace.java
+++ b/net/minecraft/world/level/RayTrace.java
@@ -24,7 +24,7 @@
this.b = vec3d1;
this.c = raytrace_blockcollisionoption;
this.d = raytrace_fluidcollisionoption;
- this.e = VoxelShapeCollision.a(entity);
+ this.e = (entity == null) ? VoxelShapeCollision.a() : VoxelShapeCollision.a(entity); // CraftBukkit
}
public Vec3D a() {
@@ -53,7 +53,7 @@
private final Predicate<Fluid> predicate;
- private FluidCollisionOption(Predicate predicate) {
+ private FluidCollisionOption(Predicate<Fluid> predicate) { // CraftBukkit - decompile error
this.predicate = predicate;
}