From 19550dc800e645a2a70f8b1724b564c09832bc04 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Mon, 23 Aug 2021 20:06:04 +0100 Subject: [PATCH] Fixed forcefield saving silverfish instead of endermites --- .../enchantments/ecoenchants/normal/Forcefield.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Forcefield.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Forcefield.java index ab4ef250..56e3e555 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Forcefield.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/normal/Forcefield.java @@ -7,10 +7,10 @@ import com.willfp.ecoenchants.enchantments.EcoEnchants; import com.willfp.ecoenchants.enchantments.meta.EnchantmentType; import com.willfp.ecoenchants.enchantments.util.EnchantChecks; import com.willfp.ecoenchants.enchantments.util.TimedRunnable; +import org.bukkit.entity.Endermite; import org.bukkit.entity.Entity; import org.bukkit.entity.Monster; import org.bukkit.entity.Player; -import org.bukkit.entity.Silverfish; import org.bukkit.event.EventHandler; import org.bukkit.event.player.PlayerJoinEvent; import org.bukkit.event.player.PlayerQuitEvent; @@ -75,7 +75,7 @@ public class Forcefield extends EcoEnchant implements TimedRunnable { continue; } - if (e instanceof Silverfish) { + if (e instanceof Endermite) { continue; }