Skip to content

Commit

Permalink
Remove wrong injection causing sprinting to never reset in <= 1.14.4
Browse files Browse the repository at this point in the history
Closes #577
  • Loading branch information
FlorianMichael committed Oct 11, 2024
1 parent 7394c86 commit ed73cde
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion docs/MAINTAINING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ These steps are the usual process for updating ViaFabricPlus to a new version of
As well as the versions in the `dependencies` block in the `build.gradle` file.
2. Update the `NATIVE_VERSION` field in the ProtocolTranslator class to the new version
3. Check all mixins in the injection package if they still apply correctly, here is a list of some critical ones:
- `MixinClientPlayerEntity#removeBl8Boolean`
- `MixinClientWorld#tickEntity` and `MixinClientWorld#tickPassenger`
- `MixinPlayer#getBlockBreakingSpeed`
4. Decompile the game source code with the tool of your choice.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,6 @@ private boolean allowElytraInVehicle(ClientPlayerEntity instance) {
return ProtocolTranslator.getTargetVersion().newerThan(ProtocolVersion.v1_14_4) && instance.hasVehicle();
}

@ModifyVariable(method = "tickMovement", at = @At(value = "LOAD", ordinal = 4), ordinal = 4)
private boolean removeBl8Boolean(boolean value) {
return ProtocolTranslator.getTargetVersion().newerThan(ProtocolVersion.v1_14_4) && value;
}

@Inject(method = "tickMovement()V",
slice = @Slice(from = @At(value = "INVOKE", target = "Lnet/minecraft/client/network/ClientPlayerEntity;isCamera()Z")),
at = @At(value = "FIELD", target = "Lnet/minecraft/client/input/Input;sneaking:Z", ordinal = 0))
Expand Down

0 comments on commit ed73cde

Please sign in to comment.