#1537: Use CreatureSpawnEvent.SpawnReason.BUCKET when creature spawns from mob bucket
This commit is contained in:
parent
050057d315
commit
206400011a
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
if (entityinsentient != null) {
|
if (entityinsentient != null) {
|
||||||
- worldserver.addFreshEntityWithPassengers(entityinsentient);
|
- worldserver.addFreshEntityWithPassengers(entityinsentient);
|
||||||
+ worldserver.addFreshEntityWithPassengers(entityinsentient, CreatureSpawnEvent.SpawnReason.SPAWNER_EGG); // CraftBukkit
|
+ worldserver.addFreshEntityWithPassengers(entityinsentient, CreatureSpawnEvent.SpawnReason.BUCKET); // CraftBukkit
|
||||||
entityinsentient.playAmbientSound();
|
entityinsentient.playAmbientSound();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user