mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 15:33:00 +00:00
handler patch
I should have done this in a branch lol
This commit is contained in:
parent
67baee7465
commit
8d9f51de35
2 changed files with 3 additions and 4 deletions
|
@ -27,8 +27,6 @@ wea_c.EventEmitter = dofile(modpath.."/utils/EventEmitter.lua")
|
||||||
|
|
||||||
wea_c.Set = dofile(wea_c.modpath.."/utils/set.lua")
|
wea_c.Set = dofile(wea_c.modpath.."/utils/set.lua")
|
||||||
|
|
||||||
wea_c.setting_handler = dofile(wea_c.modpath.."/utils/setting_handler.lua")
|
|
||||||
|
|
||||||
wea_c.Vector3 = dofile(wea_c.modpath.."/utils/vector3.lua")
|
wea_c.Vector3 = dofile(wea_c.modpath.."/utils/vector3.lua")
|
||||||
wea_c.Mesh, wea_c.Face = dofile(wea_c.modpath.."/utils/mesh.lua")
|
wea_c.Mesh, wea_c.Face = dofile(wea_c.modpath.."/utils/mesh.lua")
|
||||||
|
|
||||||
|
@ -61,7 +59,7 @@ dofile(wea_c.modpath.."/utils/player.lua") -- Player info functions
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
wea_c.setting_handler = dofile(wea_c.modpath.."/utils/setting_handler.lua") -- AFTER parser
|
||||||
|
|
||||||
wea_c.pos = dofile(modpath.."/core/pos.lua") -- AFTER EventEmitter
|
wea_c.pos = dofile(modpath.."/core/pos.lua") -- AFTER EventEmitter
|
||||||
wea_c.register_command = dofile(modpath.."/core/register_command.lua")
|
wea_c.register_command = dofile(modpath.."/core/register_command.lua")
|
||||||
|
|
|
@ -16,7 +16,8 @@ setting_handler.read = function()
|
||||||
local file, err = io.open(path .. "/settings.conf", "rb")
|
local file, err = io.open(path .. "/settings.conf", "rb")
|
||||||
if err then return false end
|
if err then return false end
|
||||||
-- Split by newline
|
-- Split by newline
|
||||||
local settings = wea_c.split(file.read(),"[\n\r]+")
|
-- local settings = wea_c.split(file:read(),"[\n\r]+")
|
||||||
|
file:close()
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Write setting to world settings
|
--- Write setting to world settings
|
||||||
|
|
Loading…
Reference in a new issue