diff --git a/Epic_Not_Here_Counter/Epic_Not_Here_Counter.xml b/Epic_Not_Here_Counter/Epic_Not_Here_Counter.xml index dc00581..a69efee 100644 --- a/Epic_Not_Here_Counter/Epic_Not_Here_Counter.xml +++ b/Epic_Not_Here_Counter/Epic_Not_Here_Counter.xml @@ -237,7 +237,7 @@ function UpdatePlugin() raw_return = nil if status == 200 then - raw_version = string.match(page, '%s+version="([0-9%.]+)"') + raw_version = string.match(page, '%s%s+version="([0-9%.]+)"') print("Raw version: " .. raw_version) print("Plugin version: " .. plugin_version) end @@ -249,7 +249,7 @@ function UpdatePlugin() local file = io.open(plugin_file, "w") file:write(page) file:close() - LoadPlugin(plugin_file) + ReloadPlugin(GetPluginID()) end raw_version = nil