summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2014-07-06 17:39:20 -0400
committerShadowNinja <shadowninja@minetest.net>2014-07-06 17:39:20 -0400
commit527812fa96b6c73c71c7a3bf8a48cb651ec90438 (patch)
tree1cfebd18d40c5334b4b5edb5802fb2cfb8e680f5 /init.lua
parent0d777362f37442ef17dd9d010d6755c84f835d9e (diff)
Make waypoints optional and use external datastorage mod
This also fixes waypoints not showing up on join.
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 0542e36..e1d2c02 100644
--- a/init.lua
+++ b/init.lua
@@ -38,7 +38,6 @@ if creative_inventory then
end
end
-dofile(modpath.."/datastorage.lua")
dofile(modpath.."/group.lua")
dofile(modpath.."/api.lua")
dofile(modpath.."/internal.lua")
@@ -46,4 +45,7 @@ dofile(modpath.."/callbacks.lua")
dofile(modpath.."/register.lua")
dofile(modpath.."/bags.lua")
dofile(modpath.."/item_names.lua")
-dofile(modpath.."/waypoints.lua")
+if minetest.get_modpath("datastorage") then
+ dofile(modpath.."/waypoints.lua")
+end
+