Remove /treset if debug setting is not used
This commit is contained in:
parent
f62d3b8521
commit
56265bc513
@ -2,7 +2,10 @@
|
||||
|
||||
-- == DEBUG SETTINGS ==
|
||||
-- If true, the generated tutorial map is in "map editing" mode, only generating
|
||||
-- the raw castle, no grass layer or other random decorations will be generated
|
||||
-- the raw castle, no grass layer or other random decorations will be generated.
|
||||
-- Also, 2 commands to manage the schematic will be available:
|
||||
-- /treset and /tsave commands will be available.
|
||||
-- (/tsave only if tutorial is trusted mod)
|
||||
local map_editing = minetest.settings:get_bool("tutorial_debug_map_editing")
|
||||
|
||||
-- == END OF DEBUG SETTINGS ==
|
||||
@ -273,6 +276,7 @@ end
|
||||
|
||||
------ Commands
|
||||
|
||||
if map_editing then
|
||||
minetest.register_privilege("tutorialmap", "Can use commands to manage the tutorial map")
|
||||
minetest.register_chatcommand("treset", {
|
||||
params = "",
|
||||
@ -304,6 +308,7 @@ if insecure_environment then
|
||||
end,
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
------ Map Generation
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user