Fix putting wrong uids on Brews in 1.14

This commit is contained in:
Sn0wStorm
2019-06-28 16:53:44 +02:00
parent 8fdfa41cc2
commit e62e9a61c2
3 changed files with 15 additions and 3 deletions
+5 -1
View File
@@ -108,8 +108,12 @@ public class BIngredients {
}
potionMeta.setDisplayName(P.p.color("&f" + cookedName));
if (!P.use1_14) {
// Before 1.14 the effects duration would strangely be only a quarter of what we tell it to be
uid *= 4;
}
// This effect stores the UID in its Duration
potionMeta.addCustomEffect((PotionEffectType.REGENERATION).createEffect((uid * 4), 0), true);
potionMeta.addCustomEffect((PotionEffectType.REGENERATION).createEffect(uid, 0), true);
potion.setItemMeta(potionMeta);
return potion;