aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/ClipContext.java.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/ClipContext.java.patch')
-rw-r--r--patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/ClipContext.java.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/ClipContext.java.patch b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/ClipContext.java.patch
new file mode 100644
index 0000000000..8f1992fa07
--- /dev/null
+++ b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/ClipContext.java.patch
@@ -0,0 +1,13 @@
+--- a/net/minecraft/world/level/ClipContext.java
++++ b/net/minecraft/world/level/ClipContext.java
+@@ -21,8 +21,8 @@
+ private final ClipContext.Fluid fluid;
+ private final CollisionContext collisionContext;
+
+- public ClipContext(Vec3 vec3, Vec3 vec31, ClipContext.Block clipcontext_block, ClipContext.Fluid clipcontext_fluid, Entity entity) {
+- this(vec3, vec31, clipcontext_block, clipcontext_fluid, CollisionContext.of(entity));
++ public ClipContext(Vec3 from, Vec3 to, ClipContext.Block block, ClipContext.Fluid fluid, Entity entity) {
++ this(from, to, block, fluid, (entity == null) ? CollisionContext.empty() : CollisionContext.of(entity)); // CraftBukkit
+ }
+
+ public ClipContext(Vec3 vec3, Vec3 vec31, ClipContext.Block clipcontext_block, ClipContext.Fluid clipcontext_fluid, CollisionContext collisioncontext) {