mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 23:53:13 +09:00
Fix Lua global leaks
Fix unintended leaked globals in the clusterio and player_auth modules.
This commit is contained in:
1 parent
90dacd98b2
commit
efc71580ea
2 files changed
+2
-2
No files matched your search
@@ -11,7 +11,7 @@ local function version_to_table(version)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- 0.17 compatibility
|
-- 0.17 compatibility
|
||||||
local supports_bar, get_bar, has_bar, version
|
local supports_bar, get_bar, set_bar, version
|
||||||
if (pcall(function() local mods = script.active_mods end)) then
|
if (pcall(function() local mods = script.active_mods end)) then
|
||||||
supports_bar = "supports_bar"
|
supports_bar = "supports_bar"
|
||||||
get_bar = "get_bar"
|
get_bar = "get_bar"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
local clusterio_api = require("modules/clusterio/api")
|
local clusterio_api = require("modules/clusterio/api")
|
||||||
local auth = {}
|
local auth = {}
|
||||||
|
|
||||||
function open_dialog(player, url, code)
|
local function open_dialog(player, url, code)
|
||||||
if player.gui.screen.player_auth_dialog then
|
if player.gui.screen.player_auth_dialog then
|
||||||
player.gui.screen.player_auth_dialog.destroy()
|
player.gui.screen.player_auth_dialog.destroy()
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user