Skip to content

Commit

Permalink
Fix AutoBrewer crash (#4329)
Browse files Browse the repository at this point in the history
  • Loading branch information
Big-Iron-Cheems authored Feb 2, 2024
1 parent bb50c18 commit 4b2d1f3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ private String getStringToAppend() {
StatusEffectInstance effect = effects.get(0);
if (effect.getAmplifier() > 0) str += "%d ".formatted(effect.getAmplifier() + 1);

str += "(%s)".formatted(StatusEffectUtil.getDurationText(effect, 1, mc.world.getTickManager().getTickRate()).getString());
str += "(%s)".formatted(StatusEffectUtil.getDurationText(effect, 1, mc.world != null ? mc.world.getTickManager().getTickRate() : 20.0F).getString());
}
}

Expand Down

0 comments on commit 4b2d1f3

Please sign in to comment.