summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemRedstoneDust.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2013-12-19 22:58:49 +0100
committerMattes D <github@xoft.cz>2013-12-19 22:58:49 +0100
commit39251bccd3a3744859ae2818e9283971a6413326 (patch)
treefa0adcda98ce23be2d2c77b65c85766a1425ab05 /src/Items/ItemRedstoneDust.h
parentMerge pull request #449 from mc-server/Fishing_Rod (diff)
parentFixed PlayerAbilities and creative (diff)
downloadcuberite-39251bccd3a3744859ae2818e9283971a6413326.tar
cuberite-39251bccd3a3744859ae2818e9283971a6413326.tar.gz
cuberite-39251bccd3a3744859ae2818e9283971a6413326.tar.bz2
cuberite-39251bccd3a3744859ae2818e9283971a6413326.tar.lz
cuberite-39251bccd3a3744859ae2818e9283971a6413326.tar.xz
cuberite-39251bccd3a3744859ae2818e9283971a6413326.tar.zst
cuberite-39251bccd3a3744859ae2818e9283971a6413326.zip
Diffstat (limited to 'src/Items/ItemRedstoneDust.h')
-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;