improved Bossbar Fix

This commit is contained in:
FlorianMichael 2023-03-18 00:47:52 +01:00
parent 47af8de417
commit c85797fa9a

View File

@ -25,7 +25,7 @@ import org.spongepowered.asm.mixin.injection.Redirect;
@Mixin(value = CommonBoss.class, remap = false)
public class MixinCommonBoss {
@Redirect(method = "setHealth", at = @At(value = "INVOKE", target = "Lcom/google/common/base/Preconditions;checkArgument(ZLjava/lang/Object;)V"))
@Redirect(method = { "<init>", "setHealth" }, at = @At(value = "INVOKE", target = "Lcom/google/common/base/Preconditions;checkArgument(ZLjava/lang/Object;)V"))
public void ignoreHealthCheck(boolean expression, Object errorMessage) {
}
}