mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Block death potions (#148)
Blocks all known death potions as it's possible to use amplifier 29, 61, 93 and 125 to get the same effect from it.
This commit is contained in:
parent
9f4b48af5a
commit
4f339b29b8
@ -80,7 +80,8 @@ public class PotionBlocker extends FreedomService
|
||||
{
|
||||
for (PotionEffect effect : effects)
|
||||
{
|
||||
if (effect.getType().equals(PotionEffectType.HEAL) && effect.getAmplifier() == 125)
|
||||
int amplifier = effect.getAmplifier();
|
||||
if (effect.getType().equals(PotionEffectType.HEAL) && (amplifier == 29 || amplifier == 61 || amplifier == 93 || amplifier == 125))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user