]> git.lizzy.rs Git - xdecor.git/blobdiff - init.lua
Fix "xpanes_space.png" texture not found (#125)
[xdecor.git] / init.lua
index bc05030b967188bfb24b945604adfe58784aad0a..1399a1c69cb5346a9eb54c3f4779885c7ce58d3b 100644 (file)
--- a/init.lua
+++ b/init.lua
@@ -1,15 +1,15 @@
 --local t = os.clock()
+
 xdecor = {}
 local modpath = minetest.get_modpath("xdecor")
 
-dofile(modpath.."/handlers/animations.lua")
-dofile(modpath.."/handlers/helpers.lua")
-dofile(modpath.."/handlers/nodeboxes.lua")
-dofile(modpath.."/handlers/registration.lua")
+dofile(modpath .. "/handlers/animations.lua")
+dofile(modpath .. "/handlers/helpers.lua")
+dofile(modpath .. "/handlers/nodeboxes.lua")
+dofile(modpath .. "/handlers/registration.lua")
 
-dofile(modpath.."/src/alias.lua")
-dofile(modpath.."/src/nodes.lua")
-dofile(modpath.."/src/recipes.lua")
+dofile(modpath .. "/src/nodes.lua")
+dofile(modpath .. "/src/recipes.lua")
 
 local subpart = {
        "chess",
@@ -20,13 +20,13 @@ local subpart = {
        "mailbox",
        "mechanisms",
        "rope",
-       "workbench"
+       "workbench",
 }
 
-for _, name in pairs(subpart) do
-       local enable = minetest.settings:get_bool("enable_xdecor_"..name)
+for _, name in ipairs(subpart) do
+       local enable = minetest.settings:get_bool("enable_xdecor_" .. name)
        if enable or enable == nil then
-               dofile(modpath.."/src/"..name..".lua")
+               dofile(modpath .. "/src/" .. name .. ".lua")
        end
 end