Fixed manually crafting items

This can hopefully be done in a more sensible fashion later.
This commit is contained in:
Gunther De Wachter
2017-06-24 15:51:03 +02:00
parent 42bfc549be
commit d77d21858e
@@ -20,6 +20,7 @@ package appeng.container.slot;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import net.minecraft.entity.player.EntityPlayer;
@@ -162,6 +163,8 @@ public class SlotCraftingTerm extends AppEngCraftingSlot
if( is != null && Platform.itemComparisons().isEqualItem( request, is ) )
{
final ItemStack[] set = new ItemStack[this.getPattern().getSizeInventory()];
// Safeguard for empty slots in the inventory for now
Arrays.fill(set, ItemStack.EMPTY);
// add one of each item to the items on the board...
if( Platform.isServer() )