mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
Implemented JOCKEY and CHUNK_GEN SpawnReasons.
This commit is contained in:
parent
0170ae9523
commit
c38fcb360a
1 changed files with 2 additions and 2 deletions
|
@ -196,7 +196,7 @@ public final class SpawnerCreature {
|
|||
|
||||
entityskeleton.setPositionRotation((double) f, (double) f1, (double) f2, entityliving.yaw, 0.0F);
|
||||
// CraftBukkit - added a reason for spawning this creature
|
||||
world.addEntity(entityskeleton, SpawnReason.NATURAL);
|
||||
world.addEntity(entityskeleton, SpawnReason.JOCKEY);
|
||||
entityskeleton.mount(entityliving);
|
||||
} else if (entityliving instanceof EntitySheep) {
|
||||
((EntitySheep) entityliving).setColor(EntitySheep.a(world.random));
|
||||
|
@ -237,7 +237,7 @@ public final class SpawnerCreature {
|
|||
|
||||
entityliving.setPositionRotation((double) f, (double) f1, (double) f2, random.nextFloat() * 360.0F, 0.0F);
|
||||
// CraftBukkit - added a reason for spawning this creature
|
||||
world.addEntity(entityliving, SpawnReason.NATURAL);
|
||||
world.addEntity(entityliving, SpawnReason.CHUNK_GEN);
|
||||
a(entityliving, world, f, f1, f2);
|
||||
flag = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue