2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/level/RayTrace.java
|
|
|
|
+++ b/net/minecraft/world/level/RayTrace.java
|
|
|
|
@@ -24,7 +24,7 @@
|
2021-06-11 07:00:00 +02:00
|
|
|
this.to = vec3d1;
|
|
|
|
this.block = raytrace_blockcollisionoption;
|
|
|
|
this.fluid = raytrace_fluidcollisionoption;
|
|
|
|
- this.collisionContext = VoxelShapeCollision.a(entity);
|
|
|
|
+ this.collisionContext = (entity == null) ? VoxelShapeCollision.a() : VoxelShapeCollision.a(entity); // CraftBukkit
|
2019-04-23 04:00:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public Vec3D a() {
|
2021-06-11 07:00:00 +02:00
|
|
|
@@ -69,7 +69,7 @@
|
2019-04-23 04:00:00 +02:00
|
|
|
|
2021-06-11 07:00:00 +02:00
|
|
|
private final Predicate<Fluid> canPick;
|
2019-04-23 04:00:00 +02:00
|
|
|
|
|
|
|
- private FluidCollisionOption(Predicate predicate) {
|
|
|
|
+ private FluidCollisionOption(Predicate<Fluid> predicate) { // CraftBukkit - decompile error
|
2021-06-11 07:00:00 +02:00
|
|
|
this.canPick = predicate;
|
2019-04-23 04:00:00 +02:00
|
|
|
}
|
|
|
|
|