summaryrefslogtreecommitdiffstats
path: root/src/Entities
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-07-04 18:42:40 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-07-04 18:42:40 +0200
commit79e558be349c40ed40b5eefefd29f563a570e404 (patch)
tree40c3af9ef6b20763695b8f165615d62df6fbfcfb /src/Entities
parentVarious fixed (diff)
downloadcuberite-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.cpp2
-rw-r--r--src/Entities/ThrownEggEntity.h5
-rw-r--r--src/Entities/ThrownEnderPearlEntity.cpp2
-rw-r--r--src/Entities/ThrownEnderPearlEntity.h5
-rw-r--r--src/Entities/ThrownSnowballEntity.cpp2
-rw-r--r--src/Entities/ThrownSnowballEntity.h5
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: