added settings to disable mod support.

master
NathanSalapat 2018-12-19 08:22:43 -06:00
parent ddb1a38efa
commit 47d4c4de35
4 changed files with 8 additions and 3 deletions

View File

@ -8,10 +8,10 @@ dofile(minetest.get_modpath('tombs')..'/gravestones.lua')
dofile(minetest.get_modpath('tombs')..'/formspec.lua')
--support for other mods
if minetest.get_modpath('default') then
if minetest.get_modpath('default') and (minetest.settings:get_bool('tombs.load_default')) then
dofile(minetest.get_modpath('tombs')..'/default.lua')
end
if minetest.get_modpath('wool') then
if minetest.get_modpath('wool') and (minetest.settings:get_bool('tombs.load_wool')) then
dofile(minetest.get_modpath('tombs')..'/wool.lua')
end

View File

@ -1,5 +1,5 @@
code:
CC0 Nathan Salapat
GNU GPLv3 Nathan Salapat
Media:
Gravestone Machine texture:

View File

@ -1 +1,4 @@
name = tombs
description = Adds many shapes and styles of tombstones.
depends = default, bones
optional_depends = wool

2
settingtypes.txt Normal file
View File

@ -0,0 +1,2 @@
tombs.load_wool (Support wool mod?) bool true
tombs.load_default (Support default mod?) bool true