Add variable 'sneaker.spawn_cap':

Will set maximun number of sneakers that can be spawned in world at one
time.
This commit is contained in:
AntumDeluge 2017-05-27 19:09:14 -07:00 committed by Jordan Irwin
parent a52acac435
commit beaff3d886

@ -9,6 +9,8 @@ function sneaker.log(message)
minetest.log("action", "[" .. sneaker.modname .. "] " .. message) minetest.log("action", "[" .. sneaker.modname .. "] " .. message)
end end
sneaker.spawn_cap = tonumber(minetest.settings:get("sneaker_spawn_cap")) or 50
local scripts = { local scripts = {
"tnt_function", "tnt_function",
"spawn", "spawn",