mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 11:44:19 +01:00
9ee989ea81
By: md_5 <git@md-5.net>
20 lines
759 B
Diff
20 lines
759 B
Diff
--- a/net/minecraft/world/level/RayTrace.java
|
|
+++ b/net/minecraft/world/level/RayTrace.java
|
|
@@ -26,7 +26,7 @@
|
|
this.to = vec3d1;
|
|
this.block = raytrace_blockcollisionoption;
|
|
this.fluid = raytrace_fluidcollisionoption;
|
|
- this.collisionContext = VoxelShapeCollision.of(entity);
|
|
+ this.collisionContext = (entity == null) ? VoxelShapeCollision.empty() : VoxelShapeCollision.of(entity); // CraftBukkit
|
|
}
|
|
|
|
public Vec3D getTo() {
|
|
@@ -75,7 +75,7 @@
|
|
|
|
private final Predicate<Fluid> canPick;
|
|
|
|
- private FluidCollisionOption(Predicate predicate) {
|
|
+ private FluidCollisionOption(Predicate<Fluid> predicate) { // CraftBukkit - decompile error
|
|
this.canPick = predicate;
|
|
}
|
|
|