diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-09-19 23:00:54 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-09-19 23:00:54 +0200 |
commit | 718eb227abe3b9a0e5277d663e32c6e10d51ab52 (patch) | |
tree | 5be83249ccd5b1ab4d2b87a4fa1597424d4e19b2 /src/Blocks | |
parent | Merge branch 'master' into MobSpawner (diff) | |
download | cuberite-718eb227abe3b9a0e5277d663e32c6e10d51ab52.tar cuberite-718eb227abe3b9a0e5277d663e32c6e10d51ab52.tar.gz cuberite-718eb227abe3b9a0e5277d663e32c6e10d51ab52.tar.bz2 cuberite-718eb227abe3b9a0e5277d663e32c6e10d51ab52.tar.lz cuberite-718eb227abe3b9a0e5277d663e32c6e10d51ab52.tar.xz cuberite-718eb227abe3b9a0e5277d663e32c6e10d51ab52.tar.zst cuberite-718eb227abe3b9a0e5277d663e32c6e10d51ab52.zip |
Diffstat (limited to 'src/Blocks')
-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 |