#1537: Use CreatureSpawnEvent.SpawnReason.BUCKET when creature spawns from mob bucket

This commit is contained in:
orang3i 2025-03-26 03:05:00 +11:00 committed by md_5
parent 050057d315
commit 206400011a
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -16,7 +16,7 @@
if (entityinsentient != null) {
- worldserver.addFreshEntityWithPassengers(entityinsentient);
+ worldserver.addFreshEntityWithPassengers(entityinsentient, CreatureSpawnEvent.SpawnReason.SPAWNER_EGG); // CraftBukkit
+ worldserver.addFreshEntityWithPassengers(entityinsentient, CreatureSpawnEvent.SpawnReason.BUCKET); // CraftBukkit
entityinsentient.playAmbientSound();
}