From 85ca164e14bf5440436f049f3dbd46f6cb7dba85 Mon Sep 17 00:00:00 2001 From: AntumDeluge Date: Sat, 27 May 2017 19:09:14 -0700 Subject: [PATCH] Add variable 'sneaker.spawn_cap': Will set maximun number of sneakers that can be spawned in world at one time. --- init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init.lua b/init.lua index f7b8b12..ef89a21 100644 --- a/init.lua +++ b/init.lua @@ -9,6 +9,8 @@ function sneaker.log(message) minetest.log('action', '[' .. sneaker.modname .. '] ' .. message) end +sneaker.spawn_cap = minetest.setting_get('sneaker_spawn_cap') or 50 + local scripts = { 'tnt_function', 'spawn',