This commit is contained in:
2025-02-12 20:14:21 +09:00
parent 7b61c8b690
commit 3f2bb631f8

View File

@@ -96,16 +96,16 @@ 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
return
end
--[[
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 entity.status ~= defines.entity_status.no_minable_resources then
return
end
]]
if check_entity(entity) then