summaryrefslogtreecommitdiffstats
path: root/src/Items
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-19 16:57:35 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-19 16:57:35 +0100
commit53ff372624e31028e61cdf72a82945fe935bb420 (patch)
tree2bfed5c86591f8a81009676f5564a08e61d9efdb /src/Items
parentFixed repeaters not updating power (diff)
downloadcuberite-53ff372624e31028e61cdf72a82945fe935bb420.tar
cuberite-53ff372624e31028e61cdf72a82945fe935bb420.tar.gz
cuberite-53ff372624e31028e61cdf72a82945fe935bb420.tar.bz2
cuberite-53ff372624e31028e61cdf72a82945fe935bb420.tar.lz
cuberite-53ff372624e31028e61cdf72a82945fe935bb420.tar.xz
cuberite-53ff372624e31028e61cdf72a82945fe935bb420.tar.zst
cuberite-53ff372624e31028e61cdf72a82945fe935bb420.zip
Diffstat (limited to 'src/Items')
-rw-r--r--src/Items/ItemRedstoneDust.h5
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;