summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockFenceGate.h
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-09-12 13:49:08 +0200
committerHowaner <franzi.moos@googlemail.com>2014-09-12 13:49:08 +0200
commit1849e620fcd564c02af059e3863a2fa7d185d2f9 (patch)
tree3a2032e4a50622461b3949dfbbb465b44dece114 /src/Blocks/BlockFenceGate.h
parentFixed a redstone sim failure with droppers. (diff)
downloadcuberite-1849e620fcd564c02af059e3863a2fa7d185d2f9.tar
cuberite-1849e620fcd564c02af059e3863a2fa7d185d2f9.tar.gz
cuberite-1849e620fcd564c02af059e3863a2fa7d185d2f9.tar.bz2
cuberite-1849e620fcd564c02af059e3863a2fa7d185d2f9.tar.lz
cuberite-1849e620fcd564c02af059e3863a2fa7d185d2f9.tar.xz
cuberite-1849e620fcd564c02af059e3863a2fa7d185d2f9.tar.zst
cuberite-1849e620fcd564c02af059e3863a2fa7d185d2f9.zip
Diffstat (limited to 'src/Blocks/BlockFenceGate.h')
-rw-r--r--src/Blocks/BlockFenceGate.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Blocks/BlockFenceGate.h b/src/Blocks/BlockFenceGate.h
index ae99a4f94..3041dd46c 100644
--- a/src/Blocks/BlockFenceGate.h
+++ b/src/Blocks/BlockFenceGate.h
@@ -17,6 +17,12 @@ public:
}
+ virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override
+ {
+ a_Pickups.Add(E_BLOCK_FENCE_GATE, 1, 0); // Reset meta to zero
+ }
+
+
virtual bool GetPlacementBlockTypeMeta(
cChunkInterface & a_ChunkInterface, cPlayer * a_Player,
int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace,