mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
Fix error with empty module table (#328)
This commit is contained in:
@@ -307,6 +307,9 @@ Event.add(defines.events.on_entity_settings_pasted, function(event)
|
|||||||
end
|
end
|
||||||
|
|
||||||
clear_module(player, destination.bounding_box, destination.name)
|
clear_module(player, destination.bounding_box, destination.name)
|
||||||
|
|
||||||
|
if next(source_inventory_content) ~= nil then
|
||||||
apply_module(player, destination.bounding_box, destination.name, {['n']=source_inventory_content, ['p']=source_inventory_content})
|
apply_module(player, destination.bounding_box, destination.name, {['n']=source_inventory_content, ['p']=source_inventory_content})
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user