diff --git a/README.md b/README.md index 077a3bd..448f37e 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ Change log: - 3.1 - Ability to hide protection blocks using /protector_hide and /protector_show , italian local added (thanks Hamlet) - 3.2 - Defaults to Minetest translation if found, otherwise intllib fallback if loaded, locale files updated for both. Added 'protector_msg' setting for player text. - 3.3 - Added support for playerfactions new api (thanks louisroyer), added limiter to protection radius of 22. -- 3.4 - Player flip and hurt functions moved to minetest.register_protection_violation function (thanks hlqkj), added 'protector_crafts' setting, changed wood doors n chests to immediate_dig for mineclone2 fix. +- 3.4 - Player flip and hurt functions moved to minetest.register_protection_violation function (thanks hlqkj), added 'protector_crafts' setting, changed wood doors n chests to immediate_dig for mineclone2 fix. Upped protector radius limit to 30. Lucky Blocks: 10 diff --git a/admin.lua b/admin.lua index cbd5e49..4e28083 100644 --- a/admin.lua +++ b/admin.lua @@ -111,6 +111,8 @@ minetest.register_abm({ -- get protection radius local r = tonumber(minetest.settings:get("protector_radius")) or 5 +if r > 30 then r = 30 end + -- show protection areas of nearby protectors owned by you (thanks agaran) minetest.register_chatcommand("protector_show_area", { params = "", diff --git a/hud.lua b/hud.lua index dba31bd..f5b5b00 100644 --- a/hud.lua +++ b/hud.lua @@ -3,7 +3,7 @@ local S = protector.intllib local radius = (tonumber(minetest.settings:get("protector_radius")) or 5) -- radius limiter (minetest cannot handle node volume of more than 4096000) -if radius > 22 then radius = 22 end +if radius > 30 then radius = 30 end local hud = {} local hud_timer = 0 diff --git a/init.lua b/init.lua index 62adb10..e6ed611 100644 --- a/init.lua +++ b/init.lua @@ -41,7 +41,7 @@ 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 +if protector_radius > 30 then protector_radius = 30 end -- get static spawn position diff --git a/settingtypes.txt b/settingtypes.txt index 723efd4..7cd6b55 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -1,5 +1,5 @@ # Size of protected area around protection node limiting player interaction -protector_radius (Protector Radius [max 22]) int 5 +protector_radius (Protector Radius [max 30]) int 5 # Flips player around when accessing protected area to stop lag griefing protector_flip (Protector Flip) bool false diff --git a/tool.lua b/tool.lua index 9af8e6d..ceaaee1 100644 --- a/tool.lua +++ b/tool.lua @@ -7,7 +7,7 @@ local S = protector.intllib 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 +if r > 30 then r = 30 end minetest.register_craftitem("protector:tool", { description = S("Protector Placer Tool (stand near protector, face direction and use)"),