diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-12-01 16:39:42 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-12-01 16:39:42 +0100 |
commit | cd0081bb677c09b21fc5017dc1e01eaa18774698 (patch) | |
tree | 3a5ea294a105a298d91817a2599ae296b7c34d4b /src/Blocks | |
parent | Added better soulsand rims (diff) | |
parent | Updated core (diff) | |
download | cuberite-cd0081bb677c09b21fc5017dc1e01eaa18774698.tar cuberite-cd0081bb677c09b21fc5017dc1e01eaa18774698.tar.gz cuberite-cd0081bb677c09b21fc5017dc1e01eaa18774698.tar.bz2 cuberite-cd0081bb677c09b21fc5017dc1e01eaa18774698.tar.lz cuberite-cd0081bb677c09b21fc5017dc1e01eaa18774698.tar.xz cuberite-cd0081bb677c09b21fc5017dc1e01eaa18774698.tar.zst cuberite-cd0081bb677c09b21fc5017dc1e01eaa18774698.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockMobSpawner.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Blocks/BlockMobSpawner.h b/src/Blocks/BlockMobSpawner.h index a51fbaafc..d5e7c273f 100644 --- a/src/Blocks/BlockMobSpawner.h +++ b/src/Blocks/BlockMobSpawner.h @@ -19,6 +19,18 @@ public: } + virtual void OnUse(cChunkInterface & a_ChunkInterface, cWorldInterface & a_WorldInterface, cPlayer *a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace, int a_CursorX, int a_CursorY, int a_CursorZ) override + { + a_ChunkInterface.UseBlockEntity(a_Player, a_BlockX, a_BlockY, a_BlockZ); + } + + + virtual bool IsUseable() override + { + return true; + } + + virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override { // No pickups |