summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-29 22:40:08 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-29 22:40:08 +0200
commit1733ebf4cdb617b3db3ecdbdf5405a5359043521 (patch)
tree117cef14ae290e32c139ac763a03dadd57ba81b7 /source
parentMoved all packet-serializing code into cProtocol125; half the packet classes aren't needed anymore. (diff)
downloadcuberite-1733ebf4cdb617b3db3ecdbdf5405a5359043521.tar
cuberite-1733ebf4cdb617b3db3ecdbdf5405a5359043521.tar.gz
cuberite-1733ebf4cdb617b3db3ecdbdf5405a5359043521.tar.bz2
cuberite-1733ebf4cdb617b3db3ecdbdf5405a5359043521.tar.lz
cuberite-1733ebf4cdb617b3db3ecdbdf5405a5359043521.tar.xz
cuberite-1733ebf4cdb617b3db3ecdbdf5405a5359043521.tar.zst
cuberite-1733ebf4cdb617b3db3ecdbdf5405a5359043521.zip
Diffstat (limited to 'source')
-rw-r--r--source/blocks/BlockTorch.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blocks/BlockTorch.h b/source/blocks/BlockTorch.h
index 8f9775d20..f25680584 100644
--- a/source/blocks/BlockTorch.h
+++ b/source/blocks/BlockTorch.h
@@ -19,6 +19,10 @@ public:
virtual void PlaceBlock(cWorld * a_World, cPlayer * a_Player, NIBBLETYPE a_BlockMeta, int a_X, int a_Y, int a_Z, char a_Dir) override
{
+ if (a_Dir == BLOCK_FACE_BOTTOM)
+ {
+ return;
+ }
a_World->SetBlock(a_X, a_Y, a_Z, m_BlockID, cTorch::DirectionToMetaData(a_Dir));
OnPlacedByPlayer(a_World, a_Player, a_X, a_Y, a_Z, a_Dir);
}