mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
.
This commit is contained in:
@@ -96,9 +96,11 @@ local function miner_check(entity)
|
|||||||
local ef = entity.force
|
local ef = entity.force
|
||||||
local er = entity.prototype.mining_drill_radius
|
local er = entity.prototype.mining_drill_radius
|
||||||
|
|
||||||
if entity.status ~= defines.entity_status.no_minable_resources then
|
for _, r in pairs(entity.surface.find_entities_filtered{ area = { { x = ep.x - er, y = ep.y - er }, { x = ep.x + er, y = ep.y + er } }, type = "resource" }) do
|
||||||
|
if r.amount > 0 then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if check_entity(entity) then
|
if check_entity(entity) then
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user