upped protector radius max to 30
This commit is contained in:
parent
1db5a9b87e
commit
4eeb568234
@ -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
|
||||
|
||||
|
@ -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 = "",
|
||||
|
2
hud.lua
2
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
|
||||
|
2
init.lua
2
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
|
||||
|
@ -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
|
||||
|
2
tool.lua
2
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)"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user