Fix "DEFAULT" SpawnReason of fish spawned by bucket (#12227)
* Add SpawnReason "Bucket". Fix "DEFAULT" SpawnReason for entity spawning from mob bucket * Clarify SpawnReason description for bucket entity spawning
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
--- a/net/minecraft/world/item/MobBucketItem.java
|
||||
+++ b/net/minecraft/world/item/MobBucketItem.java
|
||||
@@ -58,7 +_,7 @@
|
||||
}
|
||||
|
||||
if (mob != null) {
|
||||
- serverLevel.addFreshEntityWithPassengers(mob);
|
||||
+ serverLevel.addFreshEntityWithPassengers(mob, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.BUCKET); // Paper - Add SpawnReason
|
||||
mob.playAmbientSound();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user