ViaVersion / ViaForge

Client-side Implementation of the Via* projects for Minecraft Forge
GNU General Public License v3.0
123 stars 32 forks source link

About ViaVersion_MovementThreshold #66

Closed FengXiaoSkidGod closed 1 year ago

FengXiaoSkidGod commented 1 year ago
@ModifyConstant(method = "onLivingUpdate", constant = @Constant(doubleValue = 0.005D))
private double ViaVersion_MovementThreshold(double constant) {
    final ViaVersionFix viaversionfix = (ViaVersionFix) LiquidBounce.moduleManager.getModule(ViaVersionFix.class);
    if (Objects.requireNonNull(viaversionfix.getState())){
        return 0.003D;
    }
    return 0.005D;
}

I got a null pointer error, I want to know if ViaVersion_MovementThreshold existed in ViaForge

FengXiaoSkidGod commented 1 year ago

Or an older version?

FlorianMichael commented 1 year ago

This code and the ViaVersionFix class is not part of the ViaForge codebase at all

FengXiaoSkidGod commented 1 year ago

ok