Skip to content

Commit

Permalink
Move Oredictionary registrations to preInit
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Feb 21, 2015
1 parent 83cc6b9 commit 6949672
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/main/java/tconstruct/smeltery/TinkerSmeltery.java
Expand Up @@ -417,6 +417,8 @@ public void preInit (FMLPreInitializationEvent event)
{
TConstructRegistry.addItemStackToDirectory(patternTypes[i] + "Cast", new ItemStack(TinkerSmeltery.metalPattern, 1, i));
}

oreRegistry();
}

@Handler
Expand All @@ -428,7 +430,6 @@ public void init (FMLInitializationEvent event)
addRecipesForTableCasting();
addRecipesForBasinCasting();
addRecipesForFurnace();
oreRegistry();
}

@Handler
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/tconstruct/world/TinkerWorld.java
Expand Up @@ -161,6 +161,7 @@ public void preInit (FMLPreInitializationEvent event)
TinkerWorld.woodenRail = new WoodRail().setStepSound(Block.soundTypeWood).setCreativeTab(TConstructRegistry.blockTab).setBlockName("rail.wood");

GameRegistry.registerBlock(TinkerWorld.meatBlock, HamboneItemBlock.class, "MeatBlock");
OreDictionary.registerOre("hambone", new ItemStack(TinkerWorld.meatBlock));
GameRegistry.registerBlock(TinkerWorld.woolSlab1, WoolSlab1Item.class, "WoolSlab1");
GameRegistry.registerBlock(TinkerWorld.woolSlab2, WoolSlab2Item.class, "WoolSlab2");

Expand Down Expand Up @@ -235,14 +236,15 @@ public void preInit (FMLPreInitializationEvent event)
TinkerWorld.metalBlock.stepSound = Block.soundTypeMetal;
GameRegistry.registerBlock(TinkerWorld.metalBlock, MetalItemBlock.class, "MetalBlock");
FluidType.registerFluidType("Slime", TinkerWorld.slimeGel, 0, 250, TinkerWorld.blueSlimeFluid, false);

oreRegistry();
}

@Handler
public void init (FMLInitializationEvent event)
{
craftingTableRecipes();
addRecipesForFurnace();
oreRegistry();
addLoot();
createEntities();
proxy.initialize();
Expand Down Expand Up @@ -406,7 +408,6 @@ private void craftingTableRecipes ()
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(TinkerWorld.slimeChannel, 1, 0), "slimeball", "slimeball", "slimeball", "slimeball", new ItemStack(Items.redstone)));
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(TinkerWorld.slimePad, 1, 0), TinkerWorld.slimeChannel, "slimeball"));

OreDictionary.registerOre("hambone", new ItemStack(TinkerWorld.meatBlock));
GameRegistry.addRecipe(new ItemStack(TinkerWorld.meatBlock), "mmm", "mbm", "mmm", 'b', new ItemStack(Items.bone), 'm', new ItemStack(Items.porkchop));
}

Expand Down

0 comments on commit 6949672

Please sign in to comment.