Esempio n. 1
0
        public static void GrindBlockIntoInventory(MySlimBlock src, MyInventory dst)
        {
            src.DeconstructStockpile(float.MaxValue, dst);

            var stockpile = src.Value();

            if (stockpile == null)
            {
                return;
            }

            foreach (var item in stockpile.GetItems())
            {
                dst.AddItemsInternal(item.Content, item.Amount);
            }

            GrindBlock(src);
        }