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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user