1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 11:45:51 +00:00

Use #isEnabled() instead of #getWhitelist()

This commit is contained in:
Poslovitch 2017-08-12 16:08:50 +02:00
parent 9f9252991c
commit 29ce4c428a

View File

@ -344,7 +344,7 @@ public class SlimefunStartup extends JavaPlugin {
} }
// If the item is enabled in the world, then make radioactivity do its job // If the item is enabled in the world, then make radioactivity do its job
if (getWhitelist().getBoolean(p.getWorld().getName() + ".enabled-items." + SlimefunItem.getByItem(radioactive).getName())) { if (Slimefun.isEnabled(p, radioactive, false)) {
p.addPotionEffect(new PotionEffect(PotionEffectType.WITHER, 400, 3)); p.addPotionEffect(new PotionEffect(PotionEffectType.WITHER, 400, 3));
p.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, 400, 3)); p.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, 400, 3));
p.addPotionEffect(new PotionEffect(PotionEffectType.CONFUSION, 400, 3)); p.addPotionEffect(new PotionEffect(PotionEffectType.CONFUSION, 400, 3));