diff --git a/settingtypes.txt b/settingtypes.txt index 4da52e5..1d511e6 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -11,7 +11,7 @@ sneeker.spawn_interval (Sneeker spawn interval) int 240 sneeker.spawn_minlight (Sneeker min light for spawn) int -1 # Sets the maximum light that a node can have for spawn to occur. -sneeker.spawn_maxlight (Sneeker max light for spawn) int 5 +sneeker.spawn_maxlight (Sneeker max light for spawn) int 4 # Sets the lowest position at which sneeker can spawn. sneeker.spawn_minheight (Sneeker min spawn height) int -31000 diff --git a/spawn.lua b/spawn.lua index 96696a0..ed8ad83 100644 --- a/spawn.lua +++ b/spawn.lua @@ -9,7 +9,7 @@ local spawn_cap = tonumber(core.settings:get("sneeker.spawn_cap")) or 10 -- Maxi local spawn_chance = tonumber(core.settings:get("sneeker.spawn_chance")) or 1000 -- 1/1000 chance of spawn local spawn_interval = tonumber(core.settings:get("sneeker.spawn_interval")) or time_min * 4 -- Default interval is 4 minutes local spawn_minlight = tonumber(core.settings:get("sneeker.spawn_minlight")) or -1 -- Minimum light of node required for spawn -local spawn_maxlight = tonumber(core.settings:get("sneeker.spawn_maxlight")) or 5 -- Maximum light of node allowed for spawn +local spawn_maxlight = tonumber(core.settings:get("sneeker.spawn_maxlight")) or 4 -- Maximum light of node allowed for spawn local spawn_minheight = tonumber(core.settings:get("sneeker.spawn_minheight")) or -31000 -- Minimum height allowed for spawn local spawn_maxheight = tonumber(core.settings:get("sneeker.spawn_maxheight")) or 31000 -- Maximum height allowed for spawn