From 527812fa96b6c73c71c7a3bf8a48cb651ec90438 Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Sun, 6 Jul 2014 17:39:20 -0400 Subject: Make waypoints optional and use external datastorage mod This also fixes waypoints not showing up on join. --- init.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'init.lua') 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 + -- cgit v1.2.3