Fix broken config/recipes

This commit is contained in:
Justin Aquadro committed 2014-09-20 14:49:37 -04:00
1 parent decbb13734
commit 481081e4c9
4 files changed
+18 -18

No files matched your search

@@ -79,7 +79,7 @@ public class ConfigManager
public final ConfigSection sectionBlocksFullDrawers2x2 = new ConfigSection(blockSections, sectionBlocks, "fulldrawers4", "blocks.fullDrawers4");
public final ConfigSection sectionBlocksHalfDrawers1x2 = new ConfigSection(blockSections, sectionBlocks, "halfdrawers2", "blocks.halfDrawers2");
public final ConfigSection sectionBlocksHalfDrawers2x2 = new ConfigSection(blockSections, sectionBlocks, "halfdrawers4", "blocks.halfDrawers4");
public final ConfigSection sectionBlocksCompDrawers = new ConfigSection(blockSections, sectionBlocks, "compDrawers", "blocks.compDrawers");
public final ConfigSection sectionBlocksCompDrawers = new ConfigSection(blockSections, sectionBlocks, "compdrawers", "blocks.compDrawers");
public Map<String, ConfigSection> blockSectionsMap = new HashMap<String, ConfigSection>();
@@ -46,7 +46,7 @@ public class ModBlocks
GameRegistry.registerTileEntity(TileEntityDrawers.class, ModBlocks.getQualifiedName(halfDrawers4));
}
if (config.isBlockEnabled("compDrawers")) {
if (config.isBlockEnabled("compdrawers")) {
GameRegistry.registerBlock(compDrawers, ItemCompDrawers.class, "compDrawers");
GameRegistry.registerTileEntity(TileEntityCompDrawers.class, ModBlocks.getQualifiedName(compDrawers));
}
@@ -16,34 +16,34 @@ public class ModRecipes
ConfigManager config = StorageDrawers.config;
for (int i = 0; i < BlockWood.field_150096_a.length; i++) {
if (config.isBlockEnabled("fullDrawers2"))
GameRegistry.addRecipe(new ItemStack(ModBlocks.fullDrawers2, config.getBlockRecipeOutput("fullDrawers2"), i), "xyx", "xxx", "xyx",
if (config.isBlockEnabled("fulldrawers2"))
GameRegistry.addRecipe(new ItemStack(ModBlocks.fullDrawers2, config.getBlockRecipeOutput("fulldrawers2"), i), "xyx", "xxx", "xyx",
'x', new ItemStack(Blocks.planks, 1, i), 'y', Blocks.chest);
if (config.isBlockEnabled("halfDrawers2"))
GameRegistry.addRecipe(new ItemStack(ModBlocks.halfDrawers2, config.getBlockRecipeOutput("halfDrawers2"), i), "xyx", "xxx", "xyx",
if (config.isBlockEnabled("halfdrawers2"))
GameRegistry.addRecipe(new ItemStack(ModBlocks.halfDrawers2, config.getBlockRecipeOutput("halfdrawers2"), i), "xyx", "xxx", "xyx",
'x', new ItemStack(Blocks.wooden_slab, 1, i), 'y', Blocks.chest);
if (config.isBlockEnabled("fullDrawers4"))
GameRegistry.addRecipe(new ItemStack(ModBlocks.fullDrawers4, config.getBlockRecipeOutput("fullDrawers4"), i), "yxy", "xxx", "yxy",
if (config.isBlockEnabled("fulldrawers4"))
GameRegistry.addRecipe(new ItemStack(ModBlocks.fullDrawers4, config.getBlockRecipeOutput("fulldrawers4"), i), "yxy", "xxx", "yxy",
'x', new ItemStack(Blocks.planks, 1, i), 'y', Blocks.chest);
if (config.isBlockEnabled("halfDrawers4"))
GameRegistry.addRecipe(new ItemStack(ModBlocks.halfDrawers4, config.getBlockRecipeOutput("halfDrawers4"), i), "yxy", "xxx", "yxy",
if (config.isBlockEnabled("halfdrawers4"))
GameRegistry.addRecipe(new ItemStack(ModBlocks.halfDrawers4, config.getBlockRecipeOutput("halfdrawers4"), i), "yxy", "xxx", "yxy",
'x', new ItemStack(Blocks.wooden_slab, 1, i), 'y', Blocks.chest);
}
if (config.isBlockEnabled("compDrawers"))
GameRegistry.addRecipe(new ItemStack(ModBlocks.compDrawers, config.getBlockRecipeOutput("compDrawers")), "xxx", "zwz", "xyx",
if (config.isBlockEnabled("compdrawers"))
GameRegistry.addRecipe(new ItemStack(ModBlocks.compDrawers, config.getBlockRecipeOutput("compdrawers")), "xxx", "zwz", "xyx",
'x', new ItemStack(Blocks.stone), 'y', Items.iron_ingot, 'z', new ItemStack(Blocks.piston), 'w', new ItemStack(ModBlocks.fullDrawers2, 1, OreDictionary.WILDCARD_VALUE));
if (config.isBlockEnabled("fullDrawers2"))
if (config.isBlockEnabled("fulldrawers2"))
GameRegistry.addRecipe(new ItemStack(ModItems.upgradeTemplate, 2), "xxx", "xyx", "xxx",
'x', Items.stick, 'y', new ItemStack(ModBlocks.fullDrawers2, 1, OreDictionary.WILDCARD_VALUE));
if (config.isBlockEnabled("halfDrawers2"))
if (config.isBlockEnabled("halfdrawers2"))
GameRegistry.addRecipe(new ItemStack(ModItems.upgradeTemplate, 2), "xxx", "xyx", "xxx",
'x', Items.stick, 'y', new ItemStack(ModBlocks.halfDrawers2, 1, OreDictionary.WILDCARD_VALUE));
if (config.isBlockEnabled("fullDrawers4"))
if (config.isBlockEnabled("fulldrawers4"))
GameRegistry.addRecipe(new ItemStack(ModItems.upgradeTemplate, 2), "xxx", "xyx", "xxx",
'x', Items.stick, 'y', new ItemStack(ModBlocks.fullDrawers4, 1, OreDictionary.WILDCARD_VALUE));
if (config.isBlockEnabled("halfDrawers4"))
if (config.isBlockEnabled("halfdrawers4"))
GameRegistry.addRecipe(new ItemStack(ModItems.upgradeTemplate, 2), "xxx", "xyx", "xxx",
'x', Items.stick, 'y', new ItemStack(ModBlocks.halfDrawers4, 1, OreDictionary.WILDCARD_VALUE));
@@ -30,7 +30,7 @@ public class ItemCompDrawers extends ItemBlock
if (side > 1)
tile.setDirection(side);
int initCapacity = StorageDrawers.config.getBlockBaseStorage("compDrawers");
int initCapacity = StorageDrawers.config.getBlockBaseStorage("compdrawers");
tile.setDrawerCapacity(initCapacity);
}
@@ -42,7 +42,7 @@ public class ItemCompDrawers extends ItemBlock
public void addInformation (ItemStack itemStack, EntityPlayer player, List list, boolean par4) {
ConfigManager config = StorageDrawers.config;
int count = config.getBlockBaseStorage("compDrawers");
int count = config.getBlockBaseStorage("compdrawers");
list.add(StatCollector.translateToLocalFormatted("storageDrawers.drawers.description", count));
}
}