Fixes Mooshroom spawn egg in panel.

https://github.com/BentoBoxWorld/Limits/issues/28
This commit is contained in:
tastybento 2019-06-25 17:07:44 -07:00
parent c1c0537054
commit fc577758e0

View File

@ -26,9 +26,12 @@ import world.bentobox.bentobox.util.Util;
public class LimitPanel { public class LimitPanel {
private final Limits addon; private final Limits addon;
// This maps the entity types to the icon that should be shown in the panel
// If the icon is null, then the entity type is not covered by the addon
public final static Map<EntityType, Material> E2M = new HashMap<>(); public final static Map<EntityType, Material> E2M = new HashMap<>();
static { static {
E2M.put(EntityType.PIG_ZOMBIE, Material.ZOMBIE_PIGMAN_SPAWN_EGG); E2M.put(EntityType.PIG_ZOMBIE, Material.ZOMBIE_PIGMAN_SPAWN_EGG);
E2M.put(EntityType.MUSHROOM_COW, Material.MOOSHROOM_SPAWN_EGG);
E2M.put(EntityType.SNOWMAN, Material.SNOW_BLOCK); E2M.put(EntityType.SNOWMAN, Material.SNOW_BLOCK);
E2M.put(EntityType.IRON_GOLEM, Material.IRON_BLOCK); E2M.put(EntityType.IRON_GOLEM, Material.IRON_BLOCK);
E2M.put(EntityType.ILLUSIONER, Material.VILLAGER_SPAWN_EGG); E2M.put(EntityType.ILLUSIONER, Material.VILLAGER_SPAWN_EGG);