From 8004ba67ffdce53936aece8be2b15030b87b9df7 Mon Sep 17 00:00:00 2001 From: yuttyann Date: Wed, 23 Jun 2021 04:03:36 +0900 Subject: [PATCH] ScriptEntityPlus v1.1.4 --- .../com/github/yuttyann/scriptentityplus/ScriptEntity.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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) {