Commits
md_5 authored 8f3da35f712
1 + | --- a/net/minecraft/world/item/MobBucketItem.java |
2 + | +++ b/net/minecraft/world/item/MobBucketItem.java |
3 + | |
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 + | |
15 + | } |
16 + | |
17 + | if (entityinsentient != null) { |
18 + | - worldserver.addFreshEntityWithPassengers(entityinsentient); |
19 + | + worldserver.addFreshEntityWithPassengers(entityinsentient, CreatureSpawnEvent.SpawnReason.SPAWNER_EGG); // CraftBukkit |
20 + | entityinsentient.playAmbientSound(); |
21 + | } |
22 + |