Merge branch 'master' into 1.8-Protocol
This commit is contained in:
commit
009d9bbe46
@ -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,
|
||||
|
@ -15,6 +15,17 @@ public:
|
||||
: cBlockHandler(a_BlockType)
|
||||
{
|
||||
}
|
||||
|
||||
virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override
|
||||
{
|
||||
a_Pickups.Add(E_BLOCK_GRAVEL, 1, 0);
|
||||
|
||||
cFastRandom Random;
|
||||
if (Random.NextInt(30) == 0)
|
||||
{
|
||||
a_Pickups.Add(E_ITEM_FLINT, 1, 0);
|
||||
}
|
||||
}
|
||||
} ;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user