summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemBucket.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-07-17 22:59:02 +0200
committermadmaxoft <github@xoft.cz>2014-07-17 23:16:54 +0200
commitd0cc9aedb3e63d39324c52b6385406f362ab41b7 (patch)
tree20aed08f8932927b94735cf6d996f7d6ea375f46 /src/Items/ItemBucket.h
parentPlayer.cpp: Fixed compile error (diff)
downloadcuberite-d0cc9aedb3e63d39324c52b6385406f362ab41b7.tar
cuberite-d0cc9aedb3e63d39324c52b6385406f362ab41b7.tar.gz
cuberite-d0cc9aedb3e63d39324c52b6385406f362ab41b7.tar.bz2
cuberite-d0cc9aedb3e63d39324c52b6385406f362ab41b7.tar.lz
cuberite-d0cc9aedb3e63d39324c52b6385406f362ab41b7.tar.xz
cuberite-d0cc9aedb3e63d39324c52b6385406f362ab41b7.tar.zst
cuberite-d0cc9aedb3e63d39324c52b6385406f362ab41b7.zip
Diffstat (limited to '')
-rw-r--r--src/Items/ItemBucket.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Items/ItemBucket.h b/src/Items/ItemBucket.h
index 4cdfab0fe..6d7926fa4 100644
--- a/src/Items/ItemBucket.h
+++ b/src/Items/ItemBucket.h
@@ -94,7 +94,7 @@ public:
bool PlaceFluid(cWorld * a_World, cPlayer * a_Player, const cItem & a_Item, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace, BLOCKTYPE a_FluidBlock)
- {
+ {
if (a_BlockFace != BLOCK_FACE_NONE)
{
return false;
@@ -209,14 +209,14 @@ public:
}
m_Pos.Set(a_BlockX, a_BlockY, a_BlockZ); // (Block could be washed away, replace it)
return true; // Abort tracing
- }
+ }
return false;
}
} Callbacks;
cLineBlockTracer Tracer(*a_World, Callbacks);
Vector3d Start(a_Player->GetEyePosition());
- Vector3d End(a_Player->GetEyePosition() + a_Player->GetLookVector() * 5);
+ Vector3d End(a_Player->GetEyePosition() + a_Player->GetLookVector() * 5);
// cTracer::Trace returns true when whole line was traversed. By returning true when we hit something, we ensure that this never happens if liquid could be placed
// Use this to judge whether the position is valid
@@ -227,6 +227,6 @@ public:
return true;
}
- return false;
+ return false;
}
};