diff options
author | Mattes D <github@xoft.cz> | 2014-03-24 22:13:25 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-03-24 22:13:25 +0100 |
commit | 9226b8480e6a5ab3d3721201e168cc74f9056073 (patch) | |
tree | 0e8c99ab40b8a263f10f95ba0cb2228f58d9adf0 /src | |
parent | Fixed bad cmake document interpretation (diff) | |
parent | Add log pickups. (diff) | |
download | cuberite-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 |
Diffstat (limited to 'src')
-rw-r--r-- | src/Blocks/BlockSideways.h | 8 |
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) |