Undeclared var in LBM

This commit is contained in:
Jat15 2018-01-23 15:29:32 +01:00
parent bea9915a94
commit c6636efec1
2 changed files with 2 additions and 0 deletions

View File

@ -79,6 +79,7 @@ function stairsplus:register_micro_xdecor_alias(modname_old, subname_old, modnam
nodenames = {modname_old .. ":" .. subname_old .. "_nanoslab", modname_old .. ":" .. subname_old .."_cube"},
run_at_every_load = false,
action = function(pos, node)
local nodename
if modname_old .. ":" .. subname_old .. "_nanoslab" == node.name then
nodename = modname_new .. ":micro_" .. subname_new .. "_1"
else

View File

@ -79,6 +79,7 @@ function stairsplus:register_panels_xdecor_alias(modname_old, subname_old, modna
nodenames = {modname_old .. ":" .. subname_old .. "_micropanel", modname_old .. ":" .. subname_old .. "_panel"},
run_at_every_load = false,
action = function(pos, node)
local nodename
if modname_old .. ":" .. subname_old .. "_micropanel" == node.name then
nodename = modname_new .. ":panel_" .. subname_new .. "_1"
else