prevent crash on storage cell crafting

This commit is contained in:
Raoul Van den Berge
2016-01-31 17:13:33 +01:00
parent 3df1843a7f
commit 331052b01d

View File

@@ -17,6 +17,7 @@ import storagecraft.block.EnumGridType;
import storagecraft.gui.GuiHandler; import storagecraft.gui.GuiHandler;
import storagecraft.item.*; import storagecraft.item.*;
import storagecraft.network.*; import storagecraft.network.*;
import storagecraft.storage.NBTStorage;
import storagecraft.tile.*; import storagecraft.tile.*;
import storagecraft.tile.solderer.*; import storagecraft.tile.solderer.*;
@@ -297,7 +298,7 @@ public class CommonProxy
); );
// Storage Cells // Storage Cells
GameRegistry.addRecipe(new ItemStack(StorageCraftItems.STORAGE_CELL, 1, ItemStorageCell.TYPE_1K), GameRegistry.addRecipe(NBTStorage.initNBT(new ItemStack(StorageCraftItems.STORAGE_CELL, 1, ItemStorageCell.TYPE_1K)),
"GRG", "GRG",
"RPR", "RPR",
"EEE", "EEE",
@@ -307,7 +308,7 @@ public class CommonProxy
'E', new ItemStack(StorageCraftItems.QUARTZ_ENRICHED_IRON) 'E', new ItemStack(StorageCraftItems.QUARTZ_ENRICHED_IRON)
); );
GameRegistry.addRecipe(new ItemStack(StorageCraftItems.STORAGE_CELL, 1, ItemStorageCell.TYPE_4K), GameRegistry.addRecipe(NBTStorage.initNBT(new ItemStack(StorageCraftItems.STORAGE_CELL, 1, ItemStorageCell.TYPE_4K)),
"GRG", "GRG",
"RPR", "RPR",
"EEE", "EEE",
@@ -317,7 +318,7 @@ public class CommonProxy
'E', new ItemStack(StorageCraftItems.QUARTZ_ENRICHED_IRON) 'E', new ItemStack(StorageCraftItems.QUARTZ_ENRICHED_IRON)
); );
GameRegistry.addRecipe(new ItemStack(StorageCraftItems.STORAGE_CELL, 1, ItemStorageCell.TYPE_16K), GameRegistry.addRecipe(NBTStorage.initNBT(new ItemStack(StorageCraftItems.STORAGE_CELL, 1, ItemStorageCell.TYPE_16K)),
"GRG", "GRG",
"RPR", "RPR",
"EEE", "EEE",
@@ -327,7 +328,7 @@ public class CommonProxy
'E', new ItemStack(StorageCraftItems.QUARTZ_ENRICHED_IRON) 'E', new ItemStack(StorageCraftItems.QUARTZ_ENRICHED_IRON)
); );
GameRegistry.addRecipe(new ItemStack(StorageCraftItems.STORAGE_CELL, 1, ItemStorageCell.TYPE_64K), GameRegistry.addRecipe(NBTStorage.initNBT(new ItemStack(StorageCraftItems.STORAGE_CELL, 1, ItemStorageCell.TYPE_64K)),
"GRG", "GRG",
"RPR", "RPR",
"EEE", "EEE",