Hidden egg fix

This commit is contained in:
Sarah 2015-08-11 13:53:36 +02:00
parent 5c7d140521
commit f7d9476191

View File

@ -985,7 +985,7 @@ public class BonusManager extends MiniClientPlugin<BonusClientData> implements I
if(!(entity instanceof Item))
continue;
if(((Item)entity).getItemStack().getType() == Material.MONSTER_EGG)
if(((Item)entity).getItemStack().getType() == Material.MONSTER_EGG && ((Item)entity).getItemStack().hasItemMeta() && !((Item)entity).getItemStack().getItemMeta().getDisplayName().startsWith("Hidden"))
entity.remove();
if(!((Item) entity).getItemStack().hasItemMeta())