diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-05-01 00:47:57 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-05-05 17:34:17 +0200 |
commit | 3c102870f600178b7cabf6714f83e06fc05b42fd (patch) | |
tree | a9e022f5405de9c59b70ea7e664e1f5df758e3fc /src/Blocks/BlockAnvil.h | |
parent | Merge pull request #978 from mc-server/VectorAssignmentOperator (diff) | |
download | cuberite-3c102870f600178b7cabf6714f83e06fc05b42fd.tar cuberite-3c102870f600178b7cabf6714f83e06fc05b42fd.tar.gz cuberite-3c102870f600178b7cabf6714f83e06fc05b42fd.tar.bz2 cuberite-3c102870f600178b7cabf6714f83e06fc05b42fd.tar.lz cuberite-3c102870f600178b7cabf6714f83e06fc05b42fd.tar.xz cuberite-3c102870f600178b7cabf6714f83e06fc05b42fd.tar.zst cuberite-3c102870f600178b7cabf6714f83e06fc05b42fd.zip |
Diffstat (limited to 'src/Blocks/BlockAnvil.h')
-rw-r--r-- | src/Blocks/BlockAnvil.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Blocks/BlockAnvil.h b/src/Blocks/BlockAnvil.h index 93a796ef7..c9eec961d 100644 --- a/src/Blocks/BlockAnvil.h +++ b/src/Blocks/BlockAnvil.h @@ -23,6 +23,13 @@ public: { a_Pickups.push_back(cItem(E_BLOCK_ANVIL, 1, a_BlockMeta >> 2)); } + + + 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 + { + cWindow * Window = new cAnvilWindow(); + a_Player->OpenWindow(Window); + } virtual bool GetPlacementBlockTypeMeta( |