9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-26 10:29:20 +00:00

fix: 修复异常弹跳

This commit is contained in:
jhqwqmc
2025-09-10 11:23:54 +08:00
parent dd5749758d
commit fb332584c0

View File

@@ -53,7 +53,6 @@ public class BouncingBlockBehavior extends BukkitBlockBehavior {
if (FastNMS.INSTANCE.field$Vec3$y(deltaMovement) < 0.0) {
double d = CoreReflections.clazz$LivingEntity.isInstance(entity) ? 1.0 : 0.8;
double y = -FastNMS.INSTANCE.field$Vec3$y(deltaMovement) * this.bounceHeight * d;
System.out.println("deltaMovement=" + deltaMovement + ", d=" + d + ", y=" + y);
FastNMS.INSTANCE.method$Entity$setDeltaMovement(
entity,
FastNMS.INSTANCE.field$Vec3$x(deltaMovement),