mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2024-11-02 08:59:31 +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"))
|
||||
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();
|
||||
|
@ -37,7 +37,6 @@ public class MixinItem {
|
||||
if (instance instanceof CrossbowItem && ProtocolHack.getTargetVersion().isOlderThanOrEqualTo(VersionEnum.r1_17_1)) {
|
||||
return 326;
|
||||
}
|
||||
|
||||
return maxDamage;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user