Commits

md_5 authored 8f3da35f712
Fix bucket fish having CreatureSpawnEvent.SpawnReason.DEFAULT

Align with SPAWNER_EGG reason in previous versions
No tags

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

Added
1 +--- a/net/minecraft/world/item/MobBucketItem.java
2 ++++ b/net/minecraft/world/item/MobBucketItem.java
3 +@@ -26,6 +26,10 @@
4 + import net.minecraft.world.level.gameevent.GameEvent;
5 + import net.minecraft.world.level.material.FluidType;
6 +
7 ++// CraftBukkit start
8 ++import org.bukkit.event.entity.CreatureSpawnEvent;
9 ++// CraftBukkit end
10 ++
11 + public class MobBucketItem extends ItemBucket {
12 +
13 + private static final MapCodec<EntityTropicalFish.d> VARIANT_FIELD_CODEC = EntityTropicalFish.d.CODEC.fieldOf("BucketVariantTag");
14 +@@ -63,7 +67,7 @@
15 + }
16 +
17 + if (entityinsentient != null) {
18 +- worldserver.addFreshEntityWithPassengers(entityinsentient);
19 ++ worldserver.addFreshEntityWithPassengers(entityinsentient, CreatureSpawnEvent.SpawnReason.SPAWNER_EGG); // CraftBukkit
20 + entityinsentient.playAmbientSound();
21 + }
22 +

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

Add shortcut