Added a check to fix a crash with RC and GT.

Added missing smelting recipe for skystone.
This commit is contained in:
Amnet 2013-08-01 17:20:45 +02:00
parent b1be3089b0
commit 0e6daec387
2 changed files with 6 additions and 1 deletions

View file

@ -202,7 +202,11 @@ public class BlockBOPSlab extends BlockHalfSlab
private int getWoodType(int meta) private int getWoodType(int meta)
{ {
return getTypeFromMeta(meta) + category.ordinal() * 8; meta = getTypeFromMeta(meta) + category.ordinal() * 8;
if (meta < woodTypes.length)
return meta;
return 0;
} }
private static int getTypeFromMeta(int meta) private static int getTypeFromMeta(int meta)

View file

@ -283,6 +283,7 @@ public class BOPCrafting
{ {
GameRegistry.addSmelting(Block.dirt.blockID, new ItemStack(Blocks.driedDirt.get(), 1), 0F); GameRegistry.addSmelting(Block.dirt.blockID, new ItemStack(Blocks.driedDirt.get(), 1), 0F);
FurnaceRecipes.smelting().addSmelting(Blocks.redRock.get().blockID, 1, new ItemStack(Blocks.redRock.get(), 1, 0), 0.1F); FurnaceRecipes.smelting().addSmelting(Blocks.redRock.get().blockID, 1, new ItemStack(Blocks.redRock.get(), 1, 0), 0.1F);
FurnaceRecipes.smelting().addSmelting(Blocks.holyStone.get().blockID, 1, new ItemStack(Blocks.holyStone.get(), 1, 0), 0.1F);
FurnaceRecipes.smelting().addSmelting(Blocks.plants.get().blockID, 12, new ItemStack(Item.dyePowder, 1, 2), 0.2F); FurnaceRecipes.smelting().addSmelting(Blocks.plants.get().blockID, 12, new ItemStack(Item.dyePowder, 1, 2), 0.2F);
FurnaceRecipes.smelting().addSmelting(Items.mudball.get().itemID, 0, new ItemStack(Items.miscItems.get(), 1, 0), 0F); FurnaceRecipes.smelting().addSmelting(Items.mudball.get().itemID, 0, new ItemStack(Items.miscItems.get(), 1, 0), 0F);