Merge branch 'explosivegaming:main' into aperx

This commit is contained in:
2026-06-27 00:04:37 +09:00
committed by GitHub
26 changed files with 62 additions and 52 deletions
@@ -43,7 +43,7 @@ local function prevent_deconstruction(entity)
end
-- Not minable, selectable, or deconstructive
if not entity.minable or not entity.prototype.selectable_in_game or entity.has_flag("not-deconstructable") then
if not entity.minable_flag or not entity.prototype.selectable_in_game or entity.has_flag("not-deconstructable") then
return true
end
@@ -234,7 +234,7 @@ end
local max_mining_radius = 0
for _, proto in pairs(prototypes.get_entity_filtered{ { filter = "type", type = "mining-drill" } }) do
if proto.mining_drill_radius then
max_mining_radius = math.max(proto.get_mining_drill_radius(max_quality), max_mining_radius)
max_mining_radius = math.max(assert(proto.get_mining_drill_radius(max_quality)), max_mining_radius)
end
end
+1 -1
View File
@@ -56,7 +56,7 @@ end
local function protect_entity(entity)
if entity and entity.valid then
entity.destructible = false
entity.minable = false
entity.minable_flag = false
entity.rotatable = false
entity.operable = false
end