Fixed forcefield saving silverfish instead of endermites

This commit is contained in:
Auxilor 2021-08-23 20:06:04 +01:00
parent 2cc6544e53
commit 19550dc800

View File

@ -7,10 +7,10 @@ import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.enchantments.meta.EnchantmentType; import com.willfp.ecoenchants.enchantments.meta.EnchantmentType;
import com.willfp.ecoenchants.enchantments.util.EnchantChecks; import com.willfp.ecoenchants.enchantments.util.EnchantChecks;
import com.willfp.ecoenchants.enchantments.util.TimedRunnable; import com.willfp.ecoenchants.enchantments.util.TimedRunnable;
import org.bukkit.entity.Endermite;
import org.bukkit.entity.Entity; import org.bukkit.entity.Entity;
import org.bukkit.entity.Monster; import org.bukkit.entity.Monster;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.entity.Silverfish;
import org.bukkit.event.EventHandler; import org.bukkit.event.EventHandler;
import org.bukkit.event.player.PlayerJoinEvent; import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerQuitEvent; import org.bukkit.event.player.PlayerQuitEvent;
@ -75,7 +75,7 @@ public class Forcefield extends EcoEnchant implements TimedRunnable {
continue; continue;
} }
if (e instanceof Silverfish) { if (e instanceof Endermite) {
continue; continue;
} }