1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-02-07 13:31:54 +02:00

Update config name to better match purpose

This commit is contained in:
Russel Delainey 2019-06-09 22:36:53 -06:00
parent 1573217813
commit 0aa715fcce
2 changed files with 4 additions and 4 deletions

View File

@ -393,8 +393,8 @@ global.config = {
-- when biter corpses in an area are above a threshold, remove the desired amount
biter_corpse_util = {
enabled = true,
radius = 3, -- radius to search around dying entities
corpse_threshold = 10 -- number of corpses allowed on surface inside radius
chunk_size = 3, -- size of chunk in tiles
corpse_threshold = 10 -- number of corpses allowed on surface inside chunk
}
}

View File

@ -91,8 +91,8 @@ local function biter_died(event)
end
--Calculate the hash position
local x = entity.position.x - (entity.position.x % biter_utils_conf.radius)
local y = entity.position.y - (entity.position.y % biter_utils_conf.radius)
local x = entity.position.x - (entity.position.x % biter_utils_conf.chunk_size)
local y = entity.position.y - (entity.position.y % biter_utils_conf.chunk_size)
local hash_position = x .. "_" .. y
-- check global table has this position, add if not