Fixed Mana Mirror and Floral Fertilizer recipes not taking any metadata.

This commit is contained in:
Vasco Lavos committed 2014-04-28 14:08:36 +01:00
1 parent fef76c439f
commit d116e01944
2 files changed
+7 -9

No files matched your search

@@ -347,7 +347,7 @@ public final class ModCrafingRecipes {
recipeTurntable = BotaniaAPI.getLatestAddedRecipe();
// Fertilizer Recipes
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.fertilizer), new ItemStack(Items.dye, 1, 15), new ItemStack(ModItems.dye, 1, -1), new ItemStack(ModItems.dye, 1, -1), new ItemStack(ModItems.dye, 1, -1), new ItemStack(ModItems.dye, 1, -1));
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.fertilizer), new ItemStack(Items.dye, 1, 15), new ItemStack(ModItems.dye, 1, Short.MAX_VALUE), new ItemStack(ModItems.dye, 1, Short.MAX_VALUE), new ItemStack(ModItems.dye, 1, Short.MAX_VALUE), new ItemStack(ModItems.dye, 1, Short.MAX_VALUE));
recipeFertilizerPowder = BotaniaAPI.getLatestAddedRecipe();
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.fertilizer), new ItemStack(Items.dye, 1, 15), new ItemStack(Items.dye, 1, 11), new ItemStack(Items.dye, 1, 11), new ItemStack(Items.dye, 1, 1), new ItemStack(Items.dye, 1, 1));
recipeFerilizerDye = BotaniaAPI.getLatestAddedRecipe();
@@ -390,7 +390,7 @@ public final class ModCrafingRecipes {
'R', LibOreDict.LIVING_ROCK,
'S', LibOreDict.LIVINGWOOD_TWIG,
'I', LibOreDict.TERRA_STEEL,
'T', new ItemStack(ModItems.manaTablet, 1, -1));
'T', new ItemStack(ModItems.manaTablet, 1, Short.MAX_VALUE));
recipeManaMirror = BotaniaAPI.getLatestAddedRecipe();
// Mana Armor & Tools Recipes
@@ -105,20 +105,18 @@ public class PageRecipe extends LexiconPage {
public void renderItemAtAngle(IGuiLexiconEntry gui, int angle, ItemStack stack) {
if(stack == null || stack.getItem() == null)
return;
stack = stack.copy();
ItemStack workStack = stack.copy();
if(stack.getItemDamage() == Short.MAX_VALUE)
stack.setItemDamage(0);
if(workStack.getItemDamage() == Short.MAX_VALUE || workStack.getItemDamage() == -1)
workStack.setItemDamage(0);
angle -= 90;
int radius = 32;
double xPos = gui.getLeft() + Math.cos(angle * Math.PI / 180D) * radius + gui.getWidth() / 2 - 8;
double yPos = gui.getTop() + Math.sin(angle * Math.PI / 180D) * radius + 53;
ItemStack stack1 = stack.copy();
if(stack1.getItemDamage() == -1)
stack1.setItemDamage(0);
renderItem(gui, (int) xPos, (int) yPos, stack1, false);
renderItem(gui, (int) xPos, (int) yPos, workStack, false);
}
@SideOnly(Side.CLIENT)