aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/mache-vineflower-stripped/net/minecraft/world/level/ClipContext.java.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/mache-vineflower-stripped/net/minecraft/world/level/ClipContext.java.patch')
-rw-r--r--patch-remap/mache-vineflower-stripped/net/minecraft/world/level/ClipContext.java.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/patch-remap/mache-vineflower-stripped/net/minecraft/world/level/ClipContext.java.patch b/patch-remap/mache-vineflower-stripped/net/minecraft/world/level/ClipContext.java.patch
new file mode 100644
index 0000000000..a747312578
--- /dev/null
+++ b/patch-remap/mache-vineflower-stripped/net/minecraft/world/level/ClipContext.java.patch
@@ -0,0 +1,11 @@
+--- a/net/minecraft/world/level/ClipContext.java
++++ b/net/minecraft/world/level/ClipContext.java
+@@ -21,7 +22,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 vec3, Vec3 vec31, ClipContext.Block block, ClipContext.Fluid fluid, CollisionContext collisionContext) {