feat: rename potion_level placeholder

Last edit, I promise 😬
This commit is contained in:
iGabyTM committed 2023-06-21 20:55:33 +03:00
1 parent dcfeec98ed
commit ade2c78bfd
1 file changed
+2 -2
@@ -454,8 +454,8 @@ public final class PlayerExpansion extends PlaceholderExpansion implements Confi
return bool(potion != null && p.hasPotionEffect(potion));
}
if (identifier.startsWith("potion_level_")) {
final PotionEffectType potion = PotionEffectType.getByName(identifier.replace("potion_level_", ""));
if (identifier.startsWith("potion_effect_level_")) {
final PotionEffectType potion = PotionEffectType.getByName(identifier.replace("potion_effect_level_", ""));
if (potion == null || !p.hasPotionEffect(potion)) {
return "0";