1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2024-12-14 18:56:16 +01:00
PaperMC/nms-patches/RayTrace.patch

21 lines
704 B
Diff
Raw Normal View History

2019-04-23 04:00:00 +02:00
--- a/net/minecraft/server/RayTrace.java
+++ b/net/minecraft/server/RayTrace.java
@@ -15,7 +15,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() {
@@ -44,7 +44,7 @@
private final Predicate<Fluid> predicate;
- private FluidCollisionOption(Predicate predicate) {
+ private FluidCollisionOption(Predicate<Fluid> predicate) { // CraftBukkit - decompile error
this.predicate = predicate;
}