mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 03:25:23 +09:00
.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user