Make waypoints optional and use external datastorage mod

This also fixes waypoints not showing up on join.
This commit is contained in:
ShadowNinja
2014-07-06 17:39:20 -04:00
parent 0d777362f3
commit 527812fa96
4 changed files with 126 additions and 189 deletions

View File

@ -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