mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-11 09:23:42 +01:00
Added a reason for randomly spawning Ocelot babies. Addresses BUKKIT-1391
This commit is contained in:
parent
c8d4a7c835
commit
7c137d8b19
1 changed files with 1 additions and 1 deletions
|
@ -213,7 +213,7 @@ public final class SpawnerCreature {
|
||||||
|
|
||||||
entityocelot.setPositionRotation((double) f, (double) f1, (double) f2, entityliving.yaw, 0.0F);
|
entityocelot.setPositionRotation((double) f, (double) f1, (double) f2, entityliving.yaw, 0.0F);
|
||||||
entityocelot.setAge(-24000);
|
entityocelot.setAge(-24000);
|
||||||
world.addEntity(entityocelot);
|
world.addEntity(entityocelot, SpawnReason.NATURAL); // CraftBukkit - SpawnReason
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue