13
0
geforkt von Mirrors/Paper

Disable vertical air friction when item entities have friction disabled (#10369)

Dieser Commit ist enthalten in:
Noah van der Aa 2024-04-07 01:36:59 +02:00
Ursprung b6a760757a
Commit 7f488e6d9d

Datei anzeigen

@ -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