mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-23 15:33:12 +09:00
Fix error with empty module table (#328)
This commit is contained in:
1 parent
90faf2ff93
commit
659a8acb0d
1 file changed
+4
-1
@@ -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)
|
||||||
apply_module(player, destination.bounding_box, destination.name, {['n']=source_inventory_content, ['p']=source_inventory_content})
|
|
||||||
|
if next(source_inventory_content) ~= nil then
|
||||||
|
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