1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2026-02-21 11:13:00 +01:00

More deprecation fixes.

This commit is contained in:
GJ
2013-09-05 16:36:02 -04:00
parent fd8d9b02a9
commit d2bbbb0fe7
6 changed files with 54 additions and 24 deletions

View File

@@ -142,8 +142,7 @@ public final class ChimaeraWing {
}
public static ItemStack getChimaeraWing(int amount) {
Material ingredient = Material.getMaterial(Config.getInstance().getChimaeraItemId());
ItemStack itemStack = new ItemStack(ingredient, amount);
ItemStack itemStack = new ItemStack(Config.getInstance().getChimaeraItemId(), amount);
ItemMeta itemMeta = itemStack.getItemMeta();
itemMeta.setDisplayName(ChatColor.GOLD + LocaleLoader.getString("Item.ChimaeraWing.Name"));
@@ -164,8 +163,8 @@ public final class ChimaeraWing {
amount = 9;
}
ShapelessRecipe ChimaeraWing = new ShapelessRecipe(getChimaeraWing(1));
ChimaeraWing.addIngredient(amount, ingredient);
return ChimaeraWing;
ShapelessRecipe chimeraWing = new ShapelessRecipe(getChimaeraWing(1));
chimeraWing.addIngredient(amount, ingredient);
return chimeraWing;
}
}