Deprecate global config variables
This commit is contained in:
parent
347a8807bf
commit
83c60c85ff
11 changed files with 189 additions and 183 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue