diff options
author | tycho <tycho@hanoverdesktop> | 2013-12-20 01:13:04 +0100 |
---|---|---|
committer | tycho <tycho@hanoverdesktop> | 2013-12-20 01:13:04 +0100 |
commit | 7735a956f06821e30116df808f94801b5fbd19e6 (patch) | |
tree | 6c9c9c0b7484d1dd7343ba05c9b54b098e8104fd /src/Items/ItemRedstoneDust.h | |
parent | fixed D9025 (diff) | |
parent | Merge pull request #450 from mc-server/redstonefixes (diff) | |
download | cuberite-7735a956f06821e30116df808f94801b5fbd19e6.tar cuberite-7735a956f06821e30116df808f94801b5fbd19e6.tar.gz cuberite-7735a956f06821e30116df808f94801b5fbd19e6.tar.bz2 cuberite-7735a956f06821e30116df808f94801b5fbd19e6.tar.lz cuberite-7735a956f06821e30116df808f94801b5fbd19e6.tar.xz cuberite-7735a956f06821e30116df808f94801b5fbd19e6.tar.zst cuberite-7735a956f06821e30116df808f94801b5fbd19e6.zip |
Diffstat (limited to 'src/Items/ItemRedstoneDust.h')
-rw-r--r-- | src/Items/ItemRedstoneDust.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Items/ItemRedstoneDust.h b/src/Items/ItemRedstoneDust.h index b7860b187..38bf00ba6 100644 --- a/src/Items/ItemRedstoneDust.h +++ b/src/Items/ItemRedstoneDust.h @@ -27,6 +27,11 @@ public: BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta ) override { + if (!g_BlockIsTorchPlaceable[a_World->GetBlock(a_BlockX, a_BlockY - 1, a_BlockZ)]) // Some solid blocks, such as cocoa beans, are not suitable for dust + { + return false; + } + a_BlockType = E_BLOCK_REDSTONE_WIRE; a_BlockMeta = 0; return true; |