-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Labels
bugReports or fixes new or existing bugsReports or fixes new or existing bugstriageRequires labelling or reviewRequires labelling or review
Description
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
| @Inject(method = "jump", at = @At("HEAD"), cancellable = true) | |
| void onJump(CallbackInfo ci) { | |
| LivingEntity self = lambda$instance; | |
| if (self != Lambda.getMc().player) return; | |
| ci.cancel(); | |
| float height = this.getJumpVelocity(); | |
| MovementEvent.Jump event = EventFlow.post(new MovementEvent.Jump(height)); | |
| if (event.isCanceled()) return; | |
| Vec3d vec3d = self.getVelocity(); | |
| self.setVelocity(vec3d.x, event.getHeight(), vec3d.z); | |
| if (self.isSprinting()) { | |
| Float yaw = RotationManager.getMovementYaw(); | |
| float f = ((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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugReports or fixes new or existing bugsReports or fixes new or existing bugstriageRequires labelling or reviewRequires labelling or review