Reapply potion effects to the player if he already has it

Fixes #205
This commit is contained in:
Sn0wStorm
2019-10-11 15:38:29 +02:00
parent fc66ed6ab3
commit e5438e7ae3
3 changed files with 28 additions and 6 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ public class BEffect {
if (!P.use1_14) {
duration /= type.getDurationModifier();
}
type.createEffect(duration, lvl - 1).apply(player);
Util.reapplyPotionEffect(player, type.createEffect(duration, lvl - 1), true);
}
public int calcDuration(float quality) {