diff --git a/src/main/java/com/github/yuttyann/scriptentityplus/ScriptEntity.java b/src/main/java/com/github/yuttyann/scriptentityplus/ScriptEntity.java index e14f314..3c4c821 100644 --- a/src/main/java/com/github/yuttyann/scriptentityplus/ScriptEntity.java +++ b/src/main/java/com/github/yuttyann/scriptentityplus/ScriptEntity.java @@ -44,8 +44,6 @@ public class ScriptEntity extends JavaPlugin { public static final String SBP_VERSION = "2.1.2"; - private Updater updater; - @Override public void onEnable() { PluginManager manager = getServer().getPluginManager(); @@ -86,7 +84,7 @@ public void onDisable() { } public void checkUpdate(@NotNull CommandSender sender, boolean latestMessage) { - ScriptBlock.getInstance().checkUpdate(sender, updater == null ? updater = new Updater(this) : updater, latestMessage); + ScriptBlock.getInstance().checkUpdate(sender, new Updater(this), latestMessage); } public boolean removeArmorStand(@NotNull Entity entity) {