Deprecate global config variables

This commit is contained in:
stujones11 2018-01-05 20:02:18 +00:00
parent 347a8807bf
commit 83c60c85ff
11 changed files with 189 additions and 183 deletions

View file

@ -69,7 +69,7 @@ minetest.register_tool("shooter_grenade:grenade", {
end,
})
if SHOOTER_ENABLE_CRAFTING == true then
if shooter.config.enable_crafting == true then
minetest.register_craft({
output = "shooter_grenade:grenade",
recipe = {
@ -78,6 +78,5 @@ if SHOOTER_ENABLE_CRAFTING == true then
})
end
--Backwards compatibility
minetest.register_alias("shooter:grenade", "shooter_grenade:grenade")