From 7f488e6d9d374ada701bd7282a303f0a037ab117 Mon Sep 17 00:00:00 2001
From: Noah van der Aa <ndvdaa@gmail.com>
Date: Sun, 7 Apr 2024 01:36:59 +0200
Subject: [PATCH] Disable vertical air friction when item entities have
 friction disabled (#10369)

---
 patches/server/Friction-API.patch | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/patches/server/Friction-API.patch b/patches/server/Friction-API.patch
index bbc02f37fc..a332e0a235 100644
--- a/patches/server/Friction-API.patch
+++ b/patches/server/Friction-API.patch
@@ -79,6 +79,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
                      f1 = this.level().getBlockState(this.getBlockPosBelowThatAffectsMyMovement()).getBlock().getFriction() * 0.98F;
                  }
  
+-                this.setDeltaMovement(this.getDeltaMovement().multiply((double) f1, 0.98D, (double) f1));
++                this.setDeltaMovement(this.getDeltaMovement().multiply((double) f1, frictionState == net.kyori.adventure.util.TriState.FALSE ? 1D : 0.98D, (double) f1)); // Paper - Friction API
+                 if (this.onGround()) {
+                     Vec3 vec3d1 = this.getDeltaMovement();
+ 
 @@ -0,0 +0,0 @@ public class ItemEntity extends Entity implements TraceableEntity {
  
      @Override