Transport Drones


Adds transport drones and transport depots

Content
2 months ago
2.0
2.90K

b bug in collision_mask_util.collect_prototypes_with_layer

4 days ago

Failed to load mods: core/lualib/collision-mask-util.lua:70: attempt to index field 'layers' (a nil value)
stack traceback:
core/lualib/collision-mask-util.lua:70: in function 'collect_prototypes_with_layer'
Transport_Drones_Meglinge_Fork/data-final-fixes.lua:111: in main chunk

It's a factorio bug.
someone notify the community.

I changed the code to work:
CORE:
collision_mask_util.collect_prototypes_with_layer = function(layer)
local prototype_list = {}
for type, default_mask in pairs (default_masks) do
if data.raw[type] then
for name, entity in pairs (data.raw[type]) do
local entity_mask = entity.collision_mask or default_mask
if entity_mask.layers and entity_mask.layers[layer] then
table.insert(prototype_list, entity)
end
end
end
end
return prototype_list
end

New response