mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 11:44:19 +01:00
11 lines
619 B
Diff
11 lines
619 B
Diff
--- a/net/minecraft/world/level/ClipContext.java
|
|
+++ b/net/minecraft/world/level/ClipContext.java
|
|
@@ -21,7 +_,7 @@
|
|
private final CollisionContext collisionContext;
|
|
|
|
public ClipContext(Vec3 from, Vec3 to, ClipContext.Block block, ClipContext.Fluid fluid, Entity entity) {
|
|
- this(from, to, block, fluid, CollisionContext.of(entity));
|
|
+ this(from, to, block, fluid, (entity == null) ? CollisionContext.empty() : CollisionContext.of(entity)); // CraftBukkit
|
|
}
|
|
|
|
public ClipContext(Vec3 from, Vec3 to, ClipContext.Block block, ClipContext.Fluid fluid, CollisionContext collisionContext) {
|