mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2025-03-02 04:01:28 +01:00
Remove BLOCK action use delay in <= 1.8
Looking at the git history, this piece of code got lost during the v3.0.0 rewrite in be8c3659bc
and seems to be still needed after comparing the game diff
Co-authored-by: lowercasebtw <126462578+lowercasebtw@users.noreply.github.com>
This commit is contained in:
parent
26791895ad
commit
eb360c2a57
@ -240,8 +240,17 @@ public abstract class MixinLivingEntity extends Entity {
|
||||
}
|
||||
}
|
||||
|
||||
@ModifyConstant(method = "getBlockingItem", constant = @Constant(intValue = 5))
|
||||
private int removeBlockActionUseDelay(int constant) {
|
||||
if (ProtocolTranslator.getTargetVersion().olderThanOrEqualTo(ProtocolVersion.v1_8)) {
|
||||
return 0;
|
||||
} else {
|
||||
return constant;
|
||||
}
|
||||
}
|
||||
|
||||
@ModifyConstant(method = "tickMovement", constant = @Constant(doubleValue = 0.003D))
|
||||
private double modifyVelocityZero(final double constant) {
|
||||
private double modifyVelocityZero(double constant) {
|
||||
if (ProtocolTranslator.getTargetVersion().olderThanOrEqualTo(ProtocolVersion.v1_8)) {
|
||||
return 0.005D;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user