mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-05 02:22:12 +01:00
30e4583dbe
By: Initial Source <noreply+automated@papermc.io>
20 lines
949 B
Diff
20 lines
949 B
Diff
--- a/net/minecraft/world/level/ClipContext.java
|
|
+++ b/net/minecraft/world/level/ClipContext.java
|
|
@@ -22,7 +22,7 @@
|
|
private final CollisionContext collisionContext;
|
|
|
|
public ClipContext(Vec3 start, Vec3 end, ClipContext.Block shapeType, ClipContext.Fluid fluidHandling, Entity entity) {
|
|
- this(start, end, shapeType, fluidHandling, CollisionContext.of(entity));
|
|
+ this(start, end, shapeType, fluidHandling, (entity == null) ? CollisionContext.empty() : CollisionContext.of(entity)); // CraftBukkit
|
|
}
|
|
|
|
public ClipContext(Vec3 start, Vec3 end, ClipContext.Block shapeType, ClipContext.Fluid fluidHandling, CollisionContext shapeContext) {
|
|
@@ -79,7 +79,7 @@
|
|
|
|
private final Predicate<FluidState> canPick;
|
|
|
|
- private Fluid(final Predicate predicate) {
|
|
+ private Fluid(final Predicate<FluidState> predicate) { // CraftBukkit - decompile error
|
|
this.canPick = predicate;
|
|
}
|
|
|