12-18-2015, 06:00 PM
One more note. Assume you have this format:
This apparently doesn't work. You have to define the local function above the first function. Although, this is probably a "Lua" thing, not a "Cuberite" thing.
--#Main.lua require "subfolder/filename.lua" function Initialize(a_Plugin) --stuff function_from_filename() --stuff end
--#subfolder/filename.lua function function_from_filename() --stuff local_function_in_filename() end local function local_function_in_filename() --stuff end
This apparently doesn't work. You have to define the local function above the first function. Although, this is probably a "Lua" thing, not a "Cuberite" thing.