Skip to content

Commit

Permalink
In the name of science.
Browse files Browse the repository at this point in the history
  • Loading branch information
TrainerGuy22 committed Jun 21, 2014
1 parent db4f3ab commit 601ec7a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/main/java/xreliquary/common/CommonProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ public void preInit() {
try {
XRRecipes.init();
Alkahestry.init();
} catch(Exception e) { e.printStackTrace(); System.exit(1); }
} catch(Exception e) {
e.printStackTrace(); System.exit(1);
}


FluidContainerRegistry.registerFluidContainer(new FluidStack(FluidRegistry.WATER, FluidContainerRegistry.BUCKET_VOLUME / 8), XRRecipes.potion(Reference.WATER_META), XRRecipes.potion(Reference.EMPTY_VIAL_META));
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/xreliquary/init/XRRecipes.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public static void init() {

// tome and alkahestry recipes
ItemStack tomeStack = new ItemStack(ContentHandler.getItem(Names.alkahestry_tome), 1, 0);
tomeStack.setItemDamage((Integer) Reliquary.CONFIG.get(Names.alkahestry_tome, "redstoneLimit"));
tomeStack.setItemDamage(Reliquary.CONFIG.getInt(Names.alkahestry_tome, "redstoneLimit"));
GameRegistry.addShapelessRecipe(tomeStack, new Object[] { Items.book, Items.blaze_rod, Items.magma_cream, Items.gold_ingot, Blocks.glowstone, Items.nether_wart, new ItemStack(Items.skull, 1, 1), Items.ghast_tear, Items.lava_bucket });

GameRegistry.addRecipe(new AlkahestryRedstoneRecipe());
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/xreliquary/items/ItemAlkahestryTome.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class ItemAlkahestryTome extends ItemBase {
public ItemAlkahestryTome() {
super(Names.alkahestry_tome);
this.setCreativeTab(Reliquary.CREATIVE_TAB);
this.setMaxDamage(((Integer) Reliquary.CONFIG.get(Names.alkahestry_tome, "redstoneLimit")) + 1);
this.setMaxDamage(Reliquary.CONFIG.getInt(Names.alkahestry_tome, "redstoneLimit") + 1);
this.setMaxStackSize(1);
this.canRepair = false;
this.hasSubtypes = true;
Expand Down

0 comments on commit 601ec7a

Please sign in to comment.