localize leaked global

This commit is contained in:
Alexander Weber 2019-01-16 18:13:36 +01:00
parent 85a967ec7b
commit d973c119b6
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

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