mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Simplified the pass condition in Talisman
This commit is contained in:
parent
6cb081cfd3
commit
36ddfbf65f
@ -80,7 +80,7 @@ public class Talisman extends SlimefunItem {
|
||||
boolean pass = true;
|
||||
|
||||
for (PotionEffect effect: ((Talisman) talisman).getEffects()) {
|
||||
if (effect != null) if (p.hasPotionEffect(effect.getType())) pass = false;
|
||||
if (effect != null && p.hasPotionEffect(effect.getType())) pass = false;
|
||||
}
|
||||
|
||||
if (pass) {
|
||||
|
Loading…
Reference in New Issue
Block a user