diff options
Diffstat (limited to 'source/blocks')
-rw-r--r-- | source/blocks/BlockTorch.h | 4 |
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);
}
|