Added a check for incorrect parameters
This commit is contained in:
parent
e5445c915d
commit
ec60c8750d
@ -4,6 +4,9 @@ if minetest.get_modpath("moreores") then
|
||||
end
|
||||
|
||||
nssb.mymapgenis = tonumber(minetest.setting_get('mymapgenis')) or 7
|
||||
if (nssb.mymapgenis~=6) and (nssb.mymapgenis~=7) then
|
||||
nssb.mymapgenis = 7
|
||||
end
|
||||
|
||||
--schematichs generation
|
||||
local already_spawned = 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user