mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2024-11-21 11:46:49 +01:00
Remove wrong injection causing sprinting to never reset in <= 1.14.4
Closes https://github.com/ViaVersion/ViaFabricPlus/issues/577
This commit is contained in:
parent
7394c86e2c
commit
ed73cde50b
@ -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.
|
||||
|
@ -145,11 +145,6 @@ public abstract class MixinClientPlayerEntity extends AbstractClientPlayerEntity
|
||||
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))
|
||||
|
Loading…
Reference in New Issue
Block a user