From e948a58c3da46b0cd3116c5e7f84cf4a0ea47270 Mon Sep 17 00:00:00 2001 From: AntumDeluge Date: Thu, 1 Jun 2017 15:26:45 -0700 Subject: [PATCH] Set default maximum spawn to 10 --- settingtypes.txt | 2 +- spawn.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/settingtypes.txt b/settingtypes.txt index 3c7b520..86f806b 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -2,7 +2,7 @@ sneeker.debug (Log debug output) bool false # Sets maximum number of spawns that can exist in world. -sneeker.spawn_cap (Maximum spawns) int 25 +sneeker.spawn_cap (Maximum spawns) int 10 # Sets possibility for spawn. sneeker.spawn_chance (Spawn chance) int 1000 diff --git a/spawn.lua b/spawn.lua index 89476b0..a8a2577 100644 --- a/spawn.lua +++ b/spawn.lua @@ -5,7 +5,7 @@ local time_min = 60 local time_hr = time_min * 60 local time_day = time_hr * 24 -local spawn_cap = minetest.setting_get('sneeker.spawn_cap') or 25 -- Maximum number of spawns active at one time +local spawn_cap = minetest.setting_get('sneeker.spawn_cap') or 10 -- Maximum number of spawns active at one time local spawn_chance = minetest.setting_get('sneeker.spawn_chance') or 1000 -- 1/1000 chance of spawn local spawn_interval = minetest.setting_get('sneeker.spawn_interval') or time_min * 4 -- Default interval is 4 minutes local spawn_maxlight = minetest.setting_get('sneeker.spawn_maxlight') or 5 -- Maximum light of node for spawn