From beaff3d886ead9b5bc05cfab099ce7fc7e7b855a 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 15fa176..bf2b368 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 = tonumber(minetest.settings:get("sneaker_spawn_cap")) or 50 + local scripts = { "tnt_function", "spawn",