PaperMC/paper-server/nms-patches/net/minecraft/world/level/RayTrace.patch
CraftBukkit/Spigot 43702a9e10 Update to Minecraft 1.18-pre5
By: md_5 <git@md-5.net>
2021-11-22 09:00:00 +11:00

20 lines
759 B
Diff

--- a/net/minecraft/world/level/RayTrace.java
+++ b/net/minecraft/world/level/RayTrace.java
@@ -24,7 +24,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() {
@@ -69,7 +69,7 @@
private final Predicate<Fluid> canPick;
- private FluidCollisionOption(Predicate predicate) {
+ private FluidCollisionOption(Predicate<Fluid> predicate) { // CraftBukkit - decompile error
this.canPick = predicate;
}