Renamed injection

This commit is contained in:
FlorianMichael 2023-11-12 13:00:46 +01:00
parent 1544364f21
commit f7d398a4e6
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126
2 changed files with 1 additions and 2 deletions

View File

@ -188,7 +188,7 @@ public abstract class MixinClientPlayerEntity extends AbstractClientPlayerEntity
}
@Redirect(method = "tickMovement", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/network/ClientPlayerEntity;checkFallFlying()Z"))
public boolean removeFallFlyingCheck(ClientPlayerEntity instance) {
public boolean makeElytraMovementServerside(ClientPlayerEntity instance) {
// Elytra movement was serverside in <= 1.14.4 and got moved to the client in 1.15
if (ProtocolHack.getTargetVersion().isOlderThanOrEqualTo(VersionEnum.r1_14_4)) {
return !this.isOnGround() && this.getVelocity().y < 0.0 && !isFallFlying();

View File

@ -37,7 +37,6 @@ public class MixinItem {
if (instance instanceof CrossbowItem && ProtocolHack.getTargetVersion().isOlderThanOrEqualTo(VersionEnum.r1_17_1)) {
return 326;
}
return maxDamage;
}
}