3 changed files with 33 additions and 1 deletions
@ -0,0 +1,30 @@ |
|||
|
|||
#pragma once |
|||
|
|||
#include "BlockHandler.h" |
|||
#include "../FastRandom.h" |
|||
#include "../Root.h" |
|||
#include "../Bindings/PluginManager.h" |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
class cBlockGrassPathHandler final : |
|||
public cBlockHandler |
|||
{ |
|||
public: |
|||
|
|||
using cBlockHandler::cBlockHandler; |
|||
|
|||
private: |
|||
|
|||
virtual cItems ConvertToPickups(const NIBBLETYPE a_BlockMeta, const cItem * const a_Tool) const override |
|||
{ |
|||
if (!ToolHasSilkTouch(a_Tool)) |
|||
{ |
|||
return cItem(E_BLOCK_DIRT, 1, 0); |
|||
} |
|||
return cItem(E_BLOCK_GRASS_PATH, 1, 0); |
|||
} |
|||
} ; |
Loading…
Reference in new issue