2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/level/RayTrace.java
|
|
|
|
+++ b/net/minecraft/world/level/RayTrace.java
|
2022-02-28 16:00:00 +01:00
|
|
|
@@ -26,7 +26,7 @@
|
2021-06-11 07:00:00 +02:00
|
|
|
this.to = vec3d1;
|
|
|
|
this.block = raytrace_blockcollisionoption;
|
|
|
|
this.fluid = raytrace_fluidcollisionoption;
|
2021-11-21 23:00:00 +01:00
|
|
|
- this.collisionContext = VoxelShapeCollision.of(entity);
|
|
|
|
+ this.collisionContext = (entity == null) ? VoxelShapeCollision.empty() : VoxelShapeCollision.of(entity); // CraftBukkit
|
2019-04-23 04:00:00 +02:00
|
|
|
}
|
|
|
|
|
2021-11-21 23:00:00 +01:00
|
|
|
public Vec3D getTo() {
|
2022-02-28 16:00:00 +01:00
|
|
|
@@ -75,7 +75,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
|
|
|
}
|
|
|
|
|