112113114115116117118119120121122
} // If the stack has been depleted, set it // to either null, or the container item. if (removeStack) { if (!containerInfo.doesLeaveCrafting()) { stack = containerItem; containerItem = null; } else stack = null; }