Selaa lähdekoodia

Changed Chimaera Wing's recipe result to use the ingredient Material

TfT_02 12 vuotta sitten
vanhempi
sitoutus
c16e5231f4
2 muutettua tiedostoa jossa 6 lisäystä ja 1 poistoa
  1. 1 0
      Changelog.txt
  2. 5 1
      src/main/java/com/gmail/nossr50/util/ChimaeraWing.java

+ 1 - 0
Changelog.txt

@@ -8,6 +8,7 @@ Key:
   - Removal
   
 Version 1.4.06-dev
+ ! Changed Chimaera Wing's recipe result to use the ingredient Material
 
 Version 1.4.05
  + Added option to allow refreshing of chunks after block-breaking abilities. (Disabled by default)

+ 5 - 1
src/main/java/com/gmail/nossr50/util/ChimaeraWing.java

@@ -119,13 +119,17 @@ public final class ChimaeraWing {
     }
 
     public static ItemStack getChimaeraWing(int amount) {
-        ItemStack itemStack = new ItemStack(Material.FEATHER, amount);
+        Material ingredient = Material.getMaterial(Config.getInstance().getChimaeraItemId());
+        ItemStack itemStack = new ItemStack(ingredient, amount);
+
         ItemMeta itemMeta = itemStack.getItemMeta();
         itemMeta.setDisplayName(ChatColor.GOLD + "Chimaera Wing"); //TODO Locale!
+
         List<String> itemLore = new ArrayList<String>();
         itemLore.add("mcMMO Item");
         itemLore.add(ChatColor.GRAY + "Teleports you to your bed."); //TODO Locale!
         itemMeta.setLore(itemLore);
+
         itemStack.setItemMeta(itemMeta);
         return itemStack;
     }