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()