aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/mache-spigotflower-stripped/net/minecraft/world/item/SpawnEggItem.java.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/mache-spigotflower-stripped/net/minecraft/world/item/SpawnEggItem.java.patch')
-rw-r--r--patch-remap/mache-spigotflower-stripped/net/minecraft/world/item/SpawnEggItem.java.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/patch-remap/mache-spigotflower-stripped/net/minecraft/world/item/SpawnEggItem.java.patch b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/item/SpawnEggItem.java.patch
new file mode 100644
index 0000000000..87e1849bfc
--- /dev/null
+++ b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/item/SpawnEggItem.java.patch
@@ -0,0 +1,17 @@
+--- a/net/minecraft/world/item/SpawnEggItem.java
++++ b/net/minecraft/world/item/SpawnEggItem.java
+@@ -182,10 +179,10 @@
+ if (!((Mob) object).isBaby()) {
+ return Optional.empty();
+ } else {
+- ((Mob) object).moveTo(vec3.x(), vec3.y(), vec3.z(), 0.0F, 0.0F);
+- serverlevel.addFreshEntityWithPassengers((Entity) object);
+- if (itemstack.hasCustomHoverName()) {
+- ((Mob) object).setCustomName(itemstack.getHoverName());
++ ((Mob) object).moveTo(pos.x(), pos.y(), pos.z(), 0.0F, 0.0F);
++ serverLevel.addFreshEntityWithPassengers((Entity) object, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.SPAWNER_EGG); // CraftBukkit
++ if (stack.hasCustomHoverName()) {
++ ((Mob) object).setCustomName(stack.getHoverName());
+ }
+
+ if (!player.getAbilities().instabuild) {