summaryrefslogtreecommitdiffstats
path: root/src/Blocks
diff options
context:
space:
mode:
authornetchip <w00tc0d3@outlook.com>2014-09-29 17:18:20 +0200
committernetchip <w00tc0d3@outlook.com>2014-09-29 17:18:20 +0200
commit6127c21af97e450037daecd981cc88f40c3af423 (patch)
tree53f16633b953fbbed4d1bdfed1fc3e3f1787e424 /src/Blocks
parentMerge pull request #1479 from SphinxC0re/master (diff)
downloadcuberite-6127c21af97e450037daecd981cc88f40c3af423.tar
cuberite-6127c21af97e450037daecd981cc88f40c3af423.tar.gz
cuberite-6127c21af97e450037daecd981cc88f40c3af423.tar.bz2
cuberite-6127c21af97e450037daecd981cc88f40c3af423.tar.lz
cuberite-6127c21af97e450037daecd981cc88f40c3af423.tar.xz
cuberite-6127c21af97e450037daecd981cc88f40c3af423.tar.zst
cuberite-6127c21af97e450037daecd981cc88f40c3af423.zip
Diffstat (limited to 'src/Blocks')
-rw-r--r--src/Blocks/BlockStone.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/Blocks/BlockStone.h b/src/Blocks/BlockStone.h
index cd5230f49..2b71cebf1 100644
--- a/src/Blocks/BlockStone.h
+++ b/src/Blocks/BlockStone.h
@@ -2,7 +2,7 @@
#pragma once
#include "BlockHandler.h"
-
+#include "BlockID.h"
@@ -18,9 +18,15 @@ public:
virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override
{
- a_Pickups.push_back(cItem(E_BLOCK_COBBLESTONE, 1, 0));
+ switch(a_BlockMeta) {
+ case E_META_STONE:
+ a_Pickups.push_back(cItem(E_BLOCK_COBBLESTONE, 1, 0));
+ break;
+ default:
+ a_Pickups.push_back(cItem(E_BLOCK_STONE, 1, a_BlockMeta));
+ }
}
-} ;
+};