mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2024-12-24 17:50:21 +01:00
change aoc_range
This commit is contained in:
parent
adc4e71a01
commit
f6b5effe09
6
api.lua
6
api.lua
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
mobs = {}
|
mobs = {}
|
||||||
mobs.mod = "redo"
|
mobs.mod = "redo"
|
||||||
mobs.version = "20180701"
|
mobs.version = "20180708"
|
||||||
|
|
||||||
|
|
||||||
-- Intllib
|
-- Intllib
|
||||||
@ -75,9 +75,7 @@ if peaceful_only then
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- calculate aoc range for mob count
|
-- calculate aoc range for mob count
|
||||||
local aosrb = tonumber(minetest.settings:get("active_object_send_range_blocks"))
|
local aoc_range = tonumber(minetest.settings:get("active_block_range")) * 16
|
||||||
local abr = tonumber(minetest.settings:get("active_block_range"))
|
|
||||||
local aoc_range = max(aosrb, abr) * 16
|
|
||||||
|
|
||||||
-- pathfinding settings
|
-- pathfinding settings
|
||||||
local enable_pathfinding = true
|
local enable_pathfinding = true
|
||||||
|
Loading…
Reference in New Issue
Block a user