What happened?
Lambda jump hook causes other clients to fail in some scenarios (like highjump not working)
| @Inject(method = "jump", at = @At("HEAD"), cancellable = true) |
| voidonJump(CallbackInfoci) { |
| LivingEntityself = lambda$instance; |
| if (self != Lambda.getMc().player) return; |
| ci.cancel(); |
| |
| floatheight = this.getJumpVelocity(); |
| MovementEvent.Jumpevent = EventFlow.post(newMovementEvent.Jump(height)); |
| |
| if (event.isCanceled()) return; |
| |
| Vec3dvec3d = self.getVelocity(); |
| self.setVelocity(vec3d.x, event.getHeight(), vec3d.z); |
| |
| if (self.isSprinting()) { |
| Floatyaw = RotationManager.getMovementYaw(); |
| floatf = ((yaw != null) ? yaw : self.getYaw()) * ((float) Math.PI / 180); |
| self.setVelocity(self.getVelocity().add(-MathHelper.sin(f) * 0.2f, 0.0, MathHelper.cos(f) * 0.2f)); |
| } |
| |
| self.velocityDirty = true; |
| } |
What should have happened?
dont overwrite the jump method pls Thanks
Version
0.1.0+1.21.11
Log Output
No response
What happened?
Lambda jump hook causes other clients to fail in some scenarios (like highjump not working)
lambda/src/main/java/com/lambda/mixin/entity/LivingEntityMixin.java
Lines 65 to 86 in a78e86f
What should have happened?
dont overwrite the jump method pls Thanks
Version
0.1.0+1.21.11
Log Output
No response