localize leaked global
This commit is contained in:
parent
85a967ec7b
commit
d973c119b6
@ -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
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user