aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/og/net/minecraft/world/item/ItemMonsterEgg.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/og/net/minecraft/world/item/ItemMonsterEgg.patch')
-rw-r--r--patch-remap/og/net/minecraft/world/item/ItemMonsterEgg.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/world/item/ItemMonsterEgg.patch b/patch-remap/og/net/minecraft/world/item/ItemMonsterEgg.patch
new file mode 100644
index 0000000000..72316a341e
--- /dev/null
+++ b/patch-remap/og/net/minecraft/world/item/ItemMonsterEgg.patch
@@ -0,0 +1,20 @@
+--- a/net/minecraft/world/item/ItemMonsterEgg.java
++++ b/net/minecraft/world/item/ItemMonsterEgg.java
+@@ -180,7 +180,7 @@
+ return Optional.empty();
+ } else {
+ ((EntityInsentient) object).moveTo(vec3d.x(), vec3d.y(), vec3d.z(), 0.0F, 0.0F);
+- worldserver.addFreshEntityWithPassengers((Entity) object);
++ worldserver.addFreshEntityWithPassengers((Entity) object, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.SPAWNER_EGG); // CraftBukkit
+ if (itemstack.hasCustomHoverName()) {
+ ((EntityInsentient) object).setCustomName(itemstack.getHoverName());
+ }
+@@ -189,7 +189,7 @@
+ itemstack.shrink(1);
+ }
+
+- return Optional.of(object);
++ return Optional.of((EntityInsentient) object); // CraftBukkit - decompile error
+ }
+ }
+ }