This commit is contained in:
2025-02-12 20:25:08 +09:00
parent 29f997bde2
commit 9e0ed189ee

View File

@@ -96,9 +96,11 @@ local function miner_check(entity)
local ef = entity.force
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
end
end
if check_entity(entity) then
return