summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockMobSpawner.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-12-01 15:59:57 +0100
committerMattes D <github@xoft.cz>2014-12-01 15:59:57 +0100
commita13c75085e755d9456e395edd14543e983a0601d (patch)
tree5a2c61db0c715774fbc8a55918cdcd57c405c1aa /src/Blocks/BlockMobSpawner.h
parentMerge pull request #1624 from mc-server/LuaDeprecating (diff)
parentMobSpawner fixes. (diff)
downloadcuberite-a13c75085e755d9456e395edd14543e983a0601d.tar
cuberite-a13c75085e755d9456e395edd14543e983a0601d.tar.gz
cuberite-a13c75085e755d9456e395edd14543e983a0601d.tar.bz2
cuberite-a13c75085e755d9456e395edd14543e983a0601d.tar.lz
cuberite-a13c75085e755d9456e395edd14543e983a0601d.tar.xz
cuberite-a13c75085e755d9456e395edd14543e983a0601d.tar.zst
cuberite-a13c75085e755d9456e395edd14543e983a0601d.zip
Diffstat (limited to 'src/Blocks/BlockMobSpawner.h')
-rw-r--r--src/Blocks/BlockMobSpawner.h12
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