diff options
author | Safwat Halaby <SafwatHalaby@users.noreply.github.com> | 2015-12-06 07:01:40 +0100 |
---|---|---|
committer | Safwat Halaby <SafwatHalaby@users.noreply.github.com> | 2015-12-06 07:01:40 +0100 |
commit | 4d730c63b3cb445bc112fb8aafe480ac098a4a68 (patch) | |
tree | e76a28ec6b6e2c8d8d5cc0e6d3081405f0412512 /src | |
parent | Merge pull request #2694 from SafwatHalaby/documentation (diff) | |
parent | Spawn chickens from eggs as babies (diff) | |
download | cuberite-4d730c63b3cb445bc112fb8aafe480ac098a4a68.tar cuberite-4d730c63b3cb445bc112fb8aafe480ac098a4a68.tar.gz cuberite-4d730c63b3cb445bc112fb8aafe480ac098a4a68.tar.bz2 cuberite-4d730c63b3cb445bc112fb8aafe480ac098a4a68.tar.lz cuberite-4d730c63b3cb445bc112fb8aafe480ac098a4a68.tar.xz cuberite-4d730c63b3cb445bc112fb8aafe480ac098a4a68.tar.zst cuberite-4d730c63b3cb445bc112fb8aafe480ac098a4a68.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/Entities/ThrownEggEntity.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Entities/ThrownEggEntity.cpp b/src/Entities/ThrownEggEntity.cpp index d302151d8..b20050529 100644 --- a/src/Entities/ThrownEggEntity.cpp +++ b/src/Entities/ThrownEggEntity.cpp @@ -76,14 +76,14 @@ void cThrownEggEntity::TrySpawnChicken(const Vector3d & a_HitPos) { if (m_World->GetTickRandomNumber(7) == 1) { - m_World->SpawnMob(a_HitPos.x, a_HitPos.y, a_HitPos.z, mtChicken, false); + m_World->SpawnMob(a_HitPos.x, a_HitPos.y, a_HitPos.z, mtChicken, true); } else if (m_World->GetTickRandomNumber(32) == 1) { - m_World->SpawnMob(a_HitPos.x, a_HitPos.y, a_HitPos.z, mtChicken, false); - m_World->SpawnMob(a_HitPos.x, a_HitPos.y, a_HitPos.z, mtChicken, false); - m_World->SpawnMob(a_HitPos.x, a_HitPos.y, a_HitPos.z, mtChicken, false); - m_World->SpawnMob(a_HitPos.x, a_HitPos.y, a_HitPos.z, mtChicken, false); + m_World->SpawnMob(a_HitPos.x, a_HitPos.y, a_HitPos.z, mtChicken, true); + m_World->SpawnMob(a_HitPos.x, a_HitPos.y, a_HitPos.z, mtChicken, true); + m_World->SpawnMob(a_HitPos.x, a_HitPos.y, a_HitPos.z, mtChicken, true); + m_World->SpawnMob(a_HitPos.x, a_HitPos.y, a_HitPos.z, mtChicken, true); } } |