1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-03-03 14:53:01 +02:00

Fix bug in autodeconstruct. (#1343)

- Handle case where mineable_properties is nil.
This commit is contained in:
grilledham 2023-01-15 12:34:00 +00:00 committed by GitHub
parent 5ba0ba94a0
commit fb534a436a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,7 @@ Global.register_init(
fluid_ores[name] = true
end
local products = props.products
local products = props.products or {}
for i = 1, #products do
local product = products[i]
if product.type == 'fluid' then