Skip to content

Commit 3ee0566

Browse files
committed
Set the settings for areas_high_limit x4 by default
1 parent 699adc7 commit 3ee0566

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

settings.lua

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,11 @@ setting("string", "self_protection_privilege", "interact")
3838
setting("position", "self_protection_max_size", {x = 128, y = 128, z = 128})
3939
setting("number", "self_protection_max_areas", 16)
4040
-- For players with the areas_high_limit privilege.
41-
setting("position", "self_protection_max_size_high", {x = 512, y = 512, z = 512})
42-
setting("number", "self_protection_max_areas_high", 64)
41+
local base_size = areas.config["self_protection_max_size"]
42+
local base_areas = areas.config["self_protection_max_areas"]
43+
setting("position", "self_protection_max_size_high", {
44+
x = base_size.x * 4,
45+
y = base_size.y * 4,
46+
z = base_size.z * 4
47+
})
48+
setting("number", "self_protection_max_areas_high", base_areas * 4)

0 commit comments

Comments
 (0)