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
3
tool.lua
3
tool.lua
|
|
@ -6,6 +6,9 @@ local S = protector.intllib
|
|||
-- get protection radius
|
||||
local r = tonumber(minetest.settings:get("protector_radius")) or 5
|
||||
|
||||
-- radius limiter (minetest cannot handle node volume of more than 4096000)
|
||||
if r > 22 then r = 22 end
|
||||
|
||||
minetest.register_craftitem("protector:tool", {
|
||||
description = S("Protector Placer Tool (stand near protector, face direction and use)"),
|
||||
inventory_image = "protector_display.png^protector_logo.png",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue