scaffold CSM: Fix crash from indexing undefined variable
debug.txt:2021-08-18 02:17:31: WARNING[Main]: Undeclared global variable "storage" accessed at scaffold:/railscaffold.lua:151 debug.txt:2021-08-18 02:17:31: ERROR[Main]: Access denied. Reason: Client environment_step: Runtime error from mod 'scaffold' in callback environment_step(): scaffold:/railscaffold.lua:151: attempt to index global 'storage' (a nil value) debug.txt:2021-08-18 02:17:31: ERROR[Main]: scaffold:/railscaffold.lua:151: in function 'func'
This commit is contained in:
parent
b6e8c7cd30
commit
ca4199680b
@ -10,8 +10,6 @@ scaffold.constrain1 = false
|
||||
scaffold.constrain2 = false
|
||||
local hwps={}
|
||||
|
||||
local storage=minetest.get_mod_storage()
|
||||
|
||||
scaffold.wason = {}
|
||||
|
||||
local nextact = {}
|
||||
|
@ -4,7 +4,7 @@
|
||||
--west:-x,1.5,-5
|
||||
--east:-x,1.5,5
|
||||
-- north 5,1.5(3096:2.5,25025:1.5),z
|
||||
--#local storage = minetest.get_mod_storage()
|
||||
local storage = minetest.get_mod_storage()
|
||||
local ground = {
|
||||
"mesecons_torch:redstoneblock"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user