Skip to content

Commit ea150db

Browse files
committed
Fixed effect durations possibly being 0 in NecteredViognierRecipe
1 parent 55186c1 commit ea150db

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/de/dafuqs/spectrum/recipe/titration_barrel/dynamic/NecteredViognierRecipe.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ public ItemStack tap(Inventory inventory, long secondsFermented, float downfall)
4949
@Override
5050
protected @NotNull List<StatusEffectInstance> getEffects(boolean nectar, double bloominess, double alcPercent) {
5151
List<StatusEffectInstance> effects = new ArrayList<>();
52-
53-
int effectDuration = (int) (150 * Math.round(alcPercent % 10));
52+
53+
int effectDuration = (int) (150 * Math.round(alcPercent / 10));
5454
if (alcPercent >= 35) {
5555
effects.add(new StatusEffectInstance(SpectrumStatusEffects.MAGIC_ANNULATION, effectDuration, (int) (alcPercent / 10)));
5656
}

0 commit comments

Comments
 (0)