mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2025-02-18 02:02:06 +01:00
Renamed injection
This commit is contained in:
parent
1544364f21
commit
f7d398a4e6
@ -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"))
|
@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
|
// 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)) {
|
if (ProtocolHack.getTargetVersion().isOlderThanOrEqualTo(VersionEnum.r1_14_4)) {
|
||||||
return !this.isOnGround() && this.getVelocity().y < 0.0 && !isFallFlying();
|
return !this.isOnGround() && this.getVelocity().y < 0.0 && !isFallFlying();
|
||||||
|
@ -37,7 +37,6 @@ public class MixinItem {
|
|||||||
if (instance instanceof CrossbowItem && ProtocolHack.getTargetVersion().isOlderThanOrEqualTo(VersionEnum.r1_17_1)) {
|
if (instance instanceof CrossbowItem && ProtocolHack.getTargetVersion().isOlderThanOrEqualTo(VersionEnum.r1_17_1)) {
|
||||||
return 326;
|
return 326;
|
||||||
}
|
}
|
||||||
|
|
||||||
return maxDamage;
|
return maxDamage;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user