add radius limiter of 22 so node volume of 4096000 isnt exceeded
This commit is contained in:
parent
6d09dd559c
commit
6f07d66d3c
5 changed files with 13 additions and 2 deletions
4
hud.lua
4
hud.lua
|
|
@ -1,6 +1,10 @@
|
|||
|
||||
local S = protector.intllib
|
||||
local radius = (tonumber(minetest.setting_get("protector_radius")) or 5)
|
||||
|
||||
-- radius limiter (minetest cannot handle node volume of more than 4096000)
|
||||
if radius > 22 then radius = 22 end
|
||||
|
||||
local hud = {}
|
||||
local hud_timer = 0
|
||||
local hud_interval = (tonumber(minetest.setting_get("protector_hud_interval")) or 5)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue