summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-09-07 21:56:22 +0200
committermadmaxoft <github@xoft.cz>2013-09-07 21:56:22 +0200
commitd1b68f61500e975d01c4328c01da8ed52657a64d (patch)
treea51fb972553634287f9c398aea89a0317afd2987 /source
parentUpdated the API bindings. (diff)
downloadcuberite-d1b68f61500e975d01c4328c01da8ed52657a64d.tar
cuberite-d1b68f61500e975d01c4328c01da8ed52657a64d.tar.gz
cuberite-d1b68f61500e975d01c4328c01da8ed52657a64d.tar.bz2
cuberite-d1b68f61500e975d01c4328c01da8ed52657a64d.tar.lz
cuberite-d1b68f61500e975d01c4328c01da8ed52657a64d.tar.xz
cuberite-d1b68f61500e975d01c4328c01da8ed52657a64d.tar.zst
cuberite-d1b68f61500e975d01c4328c01da8ed52657a64d.zip
Diffstat (limited to '')
-rw-r--r--source/Entities/ProjectileEntity.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/Entities/ProjectileEntity.cpp b/source/Entities/ProjectileEntity.cpp
index 81a708f9a..4c8e680d0 100644
--- a/source/Entities/ProjectileEntity.cpp
+++ b/source/Entities/ProjectileEntity.cpp
@@ -45,6 +45,16 @@ protected:
// cCallbacks overrides:
virtual bool OnNextBlock(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, char a_EntryFace) override
{
+ /*
+ // DEBUG:
+ LOGD("Hit block %d:%d at {%d, %d, %d} face %d, %s (%s)",
+ a_BlockType, a_BlockMeta,
+ a_BlockX, a_BlockY, a_BlockZ, a_EntryFace,
+ g_BlockIsSolid[a_BlockType] ? "solid" : "non-solid",
+ ItemToString(cItem(a_BlockType, 1, a_BlockMeta)).c_str()
+ );
+ */
+
if (g_BlockIsSolid[a_BlockType])
{
// The projectile hit a solid block