From 4a241086654d1331eaf51c749306a04ae224e7f1 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 13 Aug 2018 18:22:57 +1000 Subject: SPIGOT-4261: Missing turtle / phantom spawn egg meta --- src/main/java/org/bukkit/craftbukkit/inventory/CraftItemFactory.java | 2 ++ src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java | 2 ++ src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSpawnEgg.java | 2 ++ 3 files changed, 6 insertions(+) (limited to 'src') diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemFactory.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemFactory.java index 0fb3c238..6998fddc 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemFactory.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemFactory.java @@ -158,6 +158,7 @@ public final class CraftItemFactory implements ItemFactory { case MULE_SPAWN_EGG: case OCELOT_SPAWN_EGG: case PARROT_SPAWN_EGG: + case PHANTOM_SPAWN_EGG: case PIG_SPAWN_EGG: case POLAR_BEAR_SPAWN_EGG: case RABBIT_SPAWN_EGG: @@ -170,6 +171,7 @@ public final class CraftItemFactory implements ItemFactory { case SPIDER_SPAWN_EGG: case SQUID_SPAWN_EGG: case STRAY_SPAWN_EGG: + case TURTLE_SPAWN_EGG: case VEX_SPAWN_EGG: case VILLAGER_SPAWN_EGG: case VINDICATOR_SPAWN_EGG: diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java index f4672b9a..f5a39c2e 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java @@ -417,6 +417,7 @@ public final class CraftItemStack extends ItemStack { case MULE_SPAWN_EGG: case OCELOT_SPAWN_EGG: case PARROT_SPAWN_EGG: + case PHANTOM_SPAWN_EGG: case PIG_SPAWN_EGG: case POLAR_BEAR_SPAWN_EGG: case RABBIT_SPAWN_EGG: @@ -429,6 +430,7 @@ public final class CraftItemStack extends ItemStack { case SPIDER_SPAWN_EGG: case SQUID_SPAWN_EGG: case STRAY_SPAWN_EGG: + case TURTLE_SPAWN_EGG: case VEX_SPAWN_EGG: case VILLAGER_SPAWN_EGG: case VINDICATOR_SPAWN_EGG: diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSpawnEgg.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSpawnEgg.java index 15d388d2..7a9f29aa 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSpawnEgg.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSpawnEgg.java @@ -136,6 +136,7 @@ public class CraftMetaSpawnEgg extends CraftMetaItem implements SpawnEggMeta { case MULE_SPAWN_EGG: case OCELOT_SPAWN_EGG: case PARROT_SPAWN_EGG: + case PHANTOM_SPAWN_EGG: case PIG_SPAWN_EGG: case POLAR_BEAR_SPAWN_EGG: case RABBIT_SPAWN_EGG: @@ -148,6 +149,7 @@ public class CraftMetaSpawnEgg extends CraftMetaItem implements SpawnEggMeta { case SPIDER_SPAWN_EGG: case SQUID_SPAWN_EGG: case STRAY_SPAWN_EGG: + case TURTLE_SPAWN_EGG: case VEX_SPAWN_EGG: case VILLAGER_SPAWN_EGG: case VINDICATOR_SPAWN_EGG: -- cgit v1.2.3