diff options
author | madmaxoft <github@xoft.cz> | 2013-08-30 14:24:03 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-08-30 14:24:03 +0200 |
commit | 17ad4c2610f2c33d5b4a8b42b7d4b8fbda9ade32 (patch) | |
tree | feaaf5bf652bfdc542dee9b9c452391531aee6ba /source/ClientHandle.cpp | |
parent | Implemented basic physics for projectiles. (diff) | |
download | cuberite-17ad4c2610f2c33d5b4a8b42b7d4b8fbda9ade32.tar cuberite-17ad4c2610f2c33d5b4a8b42b7d4b8fbda9ade32.tar.gz cuberite-17ad4c2610f2c33d5b4a8b42b7d4b8fbda9ade32.tar.bz2 cuberite-17ad4c2610f2c33d5b4a8b42b7d4b8fbda9ade32.tar.lz cuberite-17ad4c2610f2c33d5b4a8b42b7d4b8fbda9ade32.tar.xz cuberite-17ad4c2610f2c33d5b4a8b42b7d4b8fbda9ade32.tar.zst cuberite-17ad4c2610f2c33d5b4a8b42b7d4b8fbda9ade32.zip |
Diffstat (limited to 'source/ClientHandle.cpp')
-rw-r--r-- | source/ClientHandle.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/ClientHandle.cpp b/source/ClientHandle.cpp index bed9fab92..555ecb952 100644 --- a/source/ClientHandle.cpp +++ b/source/ClientHandle.cpp @@ -576,8 +576,8 @@ void cClientHandle::HandleLeftClick(int a_BlockX, int a_BlockY, int a_BlockZ, ch // A plugin doesn't agree with the action. The plugin itself is responsible for handling the consequences (possible inventory mismatch) return; } + ItemHandler->OnItemShoot(m_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace); } - LOGINFO("%s: Status SHOOT not implemented", __FUNCTION__); return; } @@ -790,16 +790,16 @@ void cClientHandle::HandleRightClick(int a_BlockX, int a_BlockY, int a_BlockZ, c BLOCKTYPE BlockType; NIBBLETYPE BlockMeta; World->GetBlockTypeMeta(a_BlockX, a_BlockY, a_BlockZ, BlockType, BlockMeta); - cBlockHandler * Handler = cBlockHandler::GetBlockHandler(BlockType); + cBlockHandler * BlockHandler = cBlockHandler::GetBlockHandler(BlockType); - if (Handler->IsUseable() && !m_Player->IsCrouched()) + if (BlockHandler->IsUseable() && !m_Player->IsCrouched()) { if (PlgMgr->CallHookPlayerUsingBlock(*m_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_CursorX, a_CursorY, a_CursorZ, BlockType, BlockMeta)) { // A plugin doesn't agree with using the block, abort return; } - Handler->OnUse(World, m_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_CursorX, a_CursorY, a_CursorZ); + BlockHandler->OnUse(World, m_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_CursorX, a_CursorY, a_CursorZ); PlgMgr->CallHookPlayerUsedBlock(*m_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_CursorX, a_CursorY, a_CursorZ, BlockType, BlockMeta); return; } |