1
0

fix dispenser pickup display bug (#4247)

fix dispenser pickup bug by ignore meta data during pickup creation
This commit is contained in:
changyong guo 2018-07-01 05:37:10 +08:00 committed by Alexander Harkness
parent be1f06520c
commit 06eb5cc70d

View File

@ -35,6 +35,13 @@ public:
return true; return true;
} }
/** Called when the drop / dispenser is convert into pickup, ignore meta data */
virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override
{
UNUSED(a_BlockMeta);
a_Pickups.push_back(cItem(m_BlockType, 1));
}
virtual NIBBLETYPE MetaMirrorXZ(NIBBLETYPE a_Meta) override virtual NIBBLETYPE MetaMirrorXZ(NIBBLETYPE a_Meta) override
{ {
// Bit 0x08 is a flag. Lowest three bits are position. 0x08 == 1000 // Bit 0x08 is a flag. Lowest three bits are position. 0x08 == 1000