diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-04 18:42:40 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-04 18:42:40 +0200 |
commit | 79e558be349c40ed40b5eefefd29f563a570e404 (patch) | |
tree | 40c3af9ef6b20763695b8f165615d62df6fbfcfb /src/Entities | |
parent | Various fixed (diff) | |
download | cuberite-79e558be349c40ed40b5eefefd29f563a570e404.tar cuberite-79e558be349c40ed40b5eefefd29f563a570e404.tar.gz cuberite-79e558be349c40ed40b5eefefd29f563a570e404.tar.bz2 cuberite-79e558be349c40ed40b5eefefd29f563a570e404.tar.lz cuberite-79e558be349c40ed40b5eefefd29f563a570e404.tar.xz cuberite-79e558be349c40ed40b5eefefd29f563a570e404.tar.zst cuberite-79e558be349c40ed40b5eefefd29f563a570e404.zip |
Diffstat (limited to 'src/Entities')
-rw-r--r-- | src/Entities/ThrownEggEntity.cpp | 2 | ||||
-rw-r--r-- | src/Entities/ThrownEggEntity.h | 5 | ||||
-rw-r--r-- | src/Entities/ThrownEnderPearlEntity.cpp | 2 | ||||
-rw-r--r-- | src/Entities/ThrownEnderPearlEntity.h | 5 | ||||
-rw-r--r-- | src/Entities/ThrownSnowballEntity.cpp | 2 | ||||
-rw-r--r-- | src/Entities/ThrownSnowballEntity.h | 5 |
6 files changed, 15 insertions, 6 deletions
diff --git a/src/Entities/ThrownEggEntity.cpp b/src/Entities/ThrownEggEntity.cpp index d7eed41e3..456083108 100644 --- a/src/Entities/ThrownEggEntity.cpp +++ b/src/Entities/ThrownEggEntity.cpp @@ -22,7 +22,7 @@ void cThrownEggEntity::OnHitSolidBlock(const Vector3d & a_HitPos, eBlockFace a_H { TrySpawnChicken(a_HitPos); - m_DestroyTimer = 5; + m_DestroyTimer = 2; } diff --git a/src/Entities/ThrownEggEntity.h b/src/Entities/ThrownEggEntity.h index 894665428..dc72c279f 100644 --- a/src/Entities/ThrownEggEntity.h +++ b/src/Entities/ThrownEggEntity.h @@ -41,7 +41,10 @@ protected: return; } } - else { super::Tick(a_Dt, a_Chunk); } + else + { + super::Tick(a_Dt, a_Chunk); + } } // Randomly decides whether to spawn a chicken where the egg lands. diff --git a/src/Entities/ThrownEnderPearlEntity.cpp b/src/Entities/ThrownEnderPearlEntity.cpp index 96dd41ee6..aeb727205 100644 --- a/src/Entities/ThrownEnderPearlEntity.cpp +++ b/src/Entities/ThrownEnderPearlEntity.cpp @@ -22,7 +22,7 @@ void cThrownEnderPearlEntity::OnHitSolidBlock(const Vector3d & a_HitPos, eBlockF // TODO: Tweak a_HitPos based on block face. TeleportCreator(a_HitPos); - m_DestroyTimer = 5; + m_DestroyTimer = 2; } diff --git a/src/Entities/ThrownEnderPearlEntity.h b/src/Entities/ThrownEnderPearlEntity.h index bfd9bd70d..1cea5f7d9 100644 --- a/src/Entities/ThrownEnderPearlEntity.h +++ b/src/Entities/ThrownEnderPearlEntity.h @@ -41,7 +41,10 @@ protected: return; } } - else { super::Tick(a_Dt, a_Chunk); } + else + { + super::Tick(a_Dt, a_Chunk); + } } /** Teleports the creator where the ender pearl lands */ diff --git a/src/Entities/ThrownSnowballEntity.cpp b/src/Entities/ThrownSnowballEntity.cpp index b82cd56db..d94e75898 100644 --- a/src/Entities/ThrownSnowballEntity.cpp +++ b/src/Entities/ThrownSnowballEntity.cpp @@ -20,7 +20,7 @@ cThrownSnowballEntity::cThrownSnowballEntity(cEntity * a_Creator, double a_X, do void cThrownSnowballEntity::OnHitSolidBlock(const Vector3d & a_HitPos, eBlockFace a_HitFace) { - m_DestroyTimer = 5; + m_DestroyTimer = 2; } diff --git a/src/Entities/ThrownSnowballEntity.h b/src/Entities/ThrownSnowballEntity.h index e30971f0a..9a8770379 100644 --- a/src/Entities/ThrownSnowballEntity.h +++ b/src/Entities/ThrownSnowballEntity.h @@ -41,7 +41,10 @@ protected: return; } } - else { super::Tick(a_Dt, a_Chunk); } + else + { + super::Tick(a_Dt, a_Chunk); + } } private: |