summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-03-24 22:13:25 +0100
committerMattes D <github@xoft.cz>2014-03-24 22:13:25 +0100
commit9226b8480e6a5ab3d3721201e168cc74f9056073 (patch)
tree0e8c99ab40b8a263f10f95ba0cb2228f58d9adf0
parentFixed bad cmake document interpretation (diff)
parentAdd log pickups. (diff)
downloadcuberite-9226b8480e6a5ab3d3721201e168cc74f9056073.tar
cuberite-9226b8480e6a5ab3d3721201e168cc74f9056073.tar.gz
cuberite-9226b8480e6a5ab3d3721201e168cc74f9056073.tar.bz2
cuberite-9226b8480e6a5ab3d3721201e168cc74f9056073.tar.lz
cuberite-9226b8480e6a5ab3d3721201e168cc74f9056073.tar.xz
cuberite-9226b8480e6a5ab3d3721201e168cc74f9056073.tar.zst
cuberite-9226b8480e6a5ab3d3721201e168cc74f9056073.zip
-rw-r--r--src/Blocks/BlockSideways.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Blocks/BlockSideways.h b/src/Blocks/BlockSideways.h
index 69c0a7230..d67c3aa24 100644
--- a/src/Blocks/BlockSideways.h
+++ b/src/Blocks/BlockSideways.h
@@ -29,7 +29,13 @@ public:
return true;
}
-
+
+ virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override
+ {
+ a_Pickups.Add(m_BlockType, 1, a_BlockMeta & 0x3);
+ }
+
+
inline static NIBBLETYPE BlockFaceToMetaData(eBlockFace a_BlockFace, NIBBLETYPE a_WoodMeta)
{
switch (a_BlockFace)