Commits

ORANG3I authored and md_5 committed 206400011a6
#1537: Use CreatureSpawnEvent.SpawnReason.BUCKET when creature spawns from mob bucket
No tags

nms-patches/net/minecraft/world/item/MobBucketItem.patch

Modified
9 9 +// CraftBukkit end
10 10 +
11 11 public class MobBucketItem extends ItemBucket {
12 12
13 13 private final EntityTypes<? extends EntityInsentient> type;
14 14 @@ -54,7 +58,7 @@
15 15 }
16 16
17 17 if (entityinsentient != null) {
18 18 - worldserver.addFreshEntityWithPassengers(entityinsentient);
19 -+ worldserver.addFreshEntityWithPassengers(entityinsentient, CreatureSpawnEvent.SpawnReason.SPAWNER_EGG); // CraftBukkit
19 ++ worldserver.addFreshEntityWithPassengers(entityinsentient, CreatureSpawnEvent.SpawnReason.BUCKET); // CraftBukkit
20 20 entityinsentient.playAmbientSound();
21 21 }
22 22

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut