Deprecate global config variables
This commit is contained in:
parent
347a8807bf
commit
83c60c85ff
11 changed files with 189 additions and 183 deletions
|
@ -129,7 +129,7 @@ minetest.register_tool("shooter_flaregun:flaregun", {
|
|||
end,
|
||||
})
|
||||
|
||||
if SHOOTER_ENABLE_CRAFTING == true then
|
||||
if shooter.config.enable_crafting == true then
|
||||
minetest.register_craft({
|
||||
output = "shooter_flaregun:flare",
|
||||
recipe = {
|
||||
|
@ -145,7 +145,6 @@ if SHOOTER_ENABLE_CRAFTING == true then
|
|||
})
|
||||
end
|
||||
|
||||
|
||||
--Backwards compatibility
|
||||
minetest.register_alias("shooter:flaregun", "shooter_flaregun:flaregun")
|
||||
minetest.register_alias("shooter:flare", "shooter_flaregun:flare")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue