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
parent 930d52cb3d
commit 85ca164e14

@ -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 = minetest.setting_get('sneaker_spawn_cap') or 50
local scripts = { local scripts = {
'tnt_function', 'tnt_function',
'spawn', 'spawn',