diff --git a/api/common.lua b/api/common.lua index fb70081..6a8e970 100644 --- a/api/common.lua +++ b/api/common.lua @@ -36,6 +36,12 @@ function industrialtest.internal.clamp(num,min,max) return math.max(math.min(num,max),min) end +function industrialtest.internal.unpackTableInto(first,second) + for k,v in pairs(second) do + first[k]=v + end +end + -- \brief Returns machine speed in items per operation -- \param meta MetaDataRef -- \returns number