geforkt von Mirrors/Paper
Add missing spawn eggs (#7896)
Dieser Commit ist enthalten in:
Ursprung
7b0c67ff2e
Commit
da6d6a433d
57
patches/server/Add-missing-spawn-eggs.patch
Normale Datei
57
patches/server/Add-missing-spawn-eggs.patch
Normale Datei
@ -0,0 +1,57 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Owen1212055 <23108066+Owen1212055@users.noreply.github.com>
|
||||
Date: Wed, 8 Jun 2022 15:58:20 -0400
|
||||
Subject: [PATCH] Add missing spawn eggs
|
||||
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemFactory.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemFactory.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemFactory.java
|
||||
+++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemFactory.java
|
||||
@@ -0,0 +0,0 @@ public final class CraftItemFactory implements ItemFactory {
|
||||
case ZOMBIE_SPAWN_EGG:
|
||||
case ZOMBIE_VILLAGER_SPAWN_EGG:
|
||||
case ZOMBIFIED_PIGLIN_SPAWN_EGG:
|
||||
+ // Paper start
|
||||
+ case ALLAY_SPAWN_EGG:
|
||||
+ case FROG_SPAWN_EGG:
|
||||
+ case TADPOLE_SPAWN_EGG:
|
||||
+ case WARDEN_SPAWN_EGG:
|
||||
+ // Paper end
|
||||
return meta instanceof CraftMetaSpawnEgg ? meta : new CraftMetaSpawnEgg(meta);
|
||||
case ARMOR_STAND:
|
||||
return meta instanceof CraftMetaArmorStand ? meta : new CraftMetaArmorStand(meta);
|
||||
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java
|
||||
+++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftItemStack.java
|
||||
@@ -0,0 +0,0 @@ public final class CraftItemStack extends ItemStack {
|
||||
case ZOMBIE_SPAWN_EGG:
|
||||
case ZOMBIE_VILLAGER_SPAWN_EGG:
|
||||
case ZOMBIFIED_PIGLIN_SPAWN_EGG:
|
||||
+ // Paper start
|
||||
+ case ALLAY_SPAWN_EGG:
|
||||
+ case FROG_SPAWN_EGG:
|
||||
+ case TADPOLE_SPAWN_EGG:
|
||||
+ case WARDEN_SPAWN_EGG:
|
||||
+ // Paper end
|
||||
return new CraftMetaSpawnEgg(item.getTag());
|
||||
case ARMOR_STAND:
|
||||
return new CraftMetaArmorStand(item.getTag());
|
||||
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSpawnEgg.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSpawnEgg.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSpawnEgg.java
|
||||
+++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaSpawnEgg.java
|
||||
@@ -0,0 +0,0 @@ public class CraftMetaSpawnEgg extends CraftMetaItem implements SpawnEggMeta {
|
||||
case ZOMBIE_SPAWN_EGG:
|
||||
case ZOMBIE_VILLAGER_SPAWN_EGG:
|
||||
case ZOMBIFIED_PIGLIN_SPAWN_EGG:
|
||||
+ // Paper start
|
||||
+ case ALLAY_SPAWN_EGG:
|
||||
+ case FROG_SPAWN_EGG:
|
||||
+ case TADPOLE_SPAWN_EGG:
|
||||
+ case WARDEN_SPAWN_EGG:
|
||||
+ // Paper end
|
||||
return true;
|
||||
default:
|
||||
return false;
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren