261262263264265266267268269270271
Slot var3 = (Slot)this.inventorySlots.get(par1); if (var3 != null && var3.getHasStack()) { ItemStack var4 = var3.getStack(); var2 = var4.copy(); if (par1 < 58 && par1 > 39) { if (!this.mergeItemStack(var4, 58, 94, true)) {
187188189190191192193194195196197
} } for(int i = 0; i <CraftingMatrix.getSizeInventory(); i++) { ItemStack itemstack = CraftingMatrix.getStackInSlot(i); if(itemstack != null) { thePlayer.addItemStackToInventory(itemstack.copy()); CraftingMatrix.setInventorySlotContents(i, null); } } } public static InventoryCrafting GenCraftingMatrix(ItemStack[] Items)