summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2013-12-25 18:14:00 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2013-12-25 18:14:00 +0100
commit5eacf327b7a1fc84845e64ac8ffbc75ed5a4a77a (patch)
treee6f84ef6edcf665e28c883257e172bbfc381f7ca /src
parentYou are now able to sweep mobs to your position using fishing rods. (diff)
downloadcuberite-5eacf327b7a1fc84845e64ac8ffbc75ed5a4a77a.tar
cuberite-5eacf327b7a1fc84845e64ac8ffbc75ed5a4a77a.tar.gz
cuberite-5eacf327b7a1fc84845e64ac8ffbc75ed5a4a77a.tar.bz2
cuberite-5eacf327b7a1fc84845e64ac8ffbc75ed5a4a77a.tar.lz
cuberite-5eacf327b7a1fc84845e64ac8ffbc75ed5a4a77a.tar.xz
cuberite-5eacf327b7a1fc84845e64ac8ffbc75ed5a4a77a.tar.zst
cuberite-5eacf327b7a1fc84845e64ac8ffbc75ed5a4a77a.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Floater.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Entities/Floater.cpp b/src/Entities/Floater.cpp
index ab0595149..dfe77f059 100644
--- a/src/Entities/Floater.cpp
+++ b/src/Entities/Floater.cpp
@@ -130,7 +130,7 @@ void cFloater::Tick(float a_Dt, cChunk & a_Chunk)
HandlePhysics(a_Dt, a_Chunk);
if (IsBlockWater(m_World->GetBlock((int) GetPosX(), (int) GetPosY(), (int) GetPosZ())) && m_World->GetBlockMeta((int) GetPosX(), (int) GetPosY(), (int) GetPosZ()) == 0)
{
- if (!m_CanPickupItem && m_AttachedMobID == -1) // Check if you can't already pickup a fish and if the floater isn't attached to a mob.
+ if ((!m_CanPickupItem) && (m_AttachedMobID == -1)) // Check if you can't already pickup a fish and if the floater isn't attached to a mob.
{
if (m_CountDownTime <= 0)
{
@@ -182,7 +182,7 @@ void cFloater::Tick(float a_Dt, cChunk & a_Chunk)
}
}
- if (GetSpeed().Length() > 4 && m_AttachedMobID == -1)
+ if ((GetSpeed().Length() > 4) && (m_AttachedMobID == -1))
{
cFloaterEntityCollisionCallback Callback(this, GetPosition(), GetPosition() + GetSpeed() / 20);