Remap CraftBukkit to Mojang+Yarn Mappings

By: Initial Source <noreply+automated@papermc.io>
This commit is contained in:
CraftBukkit/Spigot
2024-12-11 22:26:55 +01:00
parent a265d64138
commit 30e4583dbe
1780 changed files with 44628 additions and 41274 deletions

View File

@@ -0,0 +1,15 @@
--- a/net/minecraft/world/item/SpawnEggItem.java
+++ b/net/minecraft/world/item/SpawnEggItem.java
@@ -176,10 +176,10 @@
return Optional.empty();
} else {
((Mob) object).moveTo(pos.x(), pos.y(), pos.z(), 0.0F, 0.0F);
- world.addFreshEntityWithPassengers((Entity) object);
+ world.addFreshEntityWithPassengers((Entity) object, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.SPAWNER_EGG); // CraftBukkit
((Mob) object).setCustomName((Component) stack.get(DataComponents.CUSTOM_NAME));
stack.consume(1, user);
- return Optional.of(object);
+ return Optional.of((Mob) object); // CraftBukkit - decompile error
}
}
}