From d973c119b677810c1544739d989b5c26ac45f1e9 Mon Sep 17 00:00:00 2001 From: Alexander Weber Date: Wed, 16 Jan 2019 18:13:36 +0100 Subject: [PATCH] localize leaked global --- smart_sfinv_api/init.lua | 2 +- smart_sfinv_tweaks/maininv.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/smart_sfinv_api/init.lua b/smart_sfinv_api/init.lua index bd17695..8711025 100644 --- a/smart_sfinv_api/init.lua +++ b/smart_sfinv_api/init.lua @@ -40,7 +40,7 @@ local enh_handler_class = { formspec_size_add_h = 0, } smart_sfinv_api.defaults = enh_handler_class -enh_handler_class_meta = {__index = enh_handler_class } +local enh_handler_class_meta = {__index = enh_handler_class } function enh_handler_class:run_enhancements(enh_method, ...) for _, enh in ipairs(smart_sfinv_api.registered_enhancements) do diff --git a/smart_sfinv_tweaks/maininv.lua b/smart_sfinv_tweaks/maininv.lua index ad5cdc8..6b50ad2 100644 --- a/smart_sfinv_tweaks/maininv.lua +++ b/smart_sfinv_tweaks/maininv.lua @@ -1,6 +1,6 @@ -- Enhanced main inventory methods local maininvClass = {} -maininvClass_mt = {__index = maininvClass} +local maininvClass_mt = {__index = maininvClass} -- Clear the inventory function maininvClass:remove_all()