add radius limiter of 22 so node volume of 4096000 isnt exceeded

This commit is contained in:
tenplus1 2020-08-30 08:30:42 +01:00
commit 6f07d66d3c
5 changed files with 13 additions and 2 deletions

View file

@ -34,6 +34,10 @@ local protector_show = tonumber(minetest.settings:get("protector_show_interval")
local protector_recipe = minetest.settings:get_bool("protector_recipe") ~= false
local protector_msg = minetest.settings:get_bool("protector_msg") ~= false
-- radius limiter (minetest cannot handle node volume of more than 4096000)
if protector_radius > 22 then protector_radius = 22 end
-- get static spawn position
local statspawn = minetest.string_to_pos(minetest.settings:get("static_spawnpoint"))
or {x = 0, y = 2, z = 0}