No! My way!

This commit is contained in:
Norbi Peti 2016-11-20 02:30:25 +01:00
parent 60730ac994
commit aabc2b057f

View file

@ -15,13 +15,9 @@ public class DebugPotatoAPI {
ItemStack potato = new ItemStack(Material.BAKED_POTATO);
ItemMeta meta = potato.getItemMeta();
meta.setDisplayName(dp.getType() == null ? "Spicy Debug Potato" : dp.getType());
if (dp.getMessage() == null){
List<String> message = new ArrayList<String>();
message.add("nullMessage");
meta.setLore(message);
}else{
meta.setLore(dp.getMessage());
}
if (dp.getMessage() == null)
dp.setMessage("nullMessage");
meta.setLore(dp.getMessage());
potato.setItemMeta(meta);
potato.addUnsafeEnchantment(Enchantment.ARROW_FIRE, 10);
return potato;