diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2022-01-13 21:51:47 +0100 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2022-01-14 20:43:29 +0100 |
commit | 903bcfc61fd031985e55a604293f85c2597a8320 (patch) | |
tree | a03926be8f4ba7aef37a1e349a26e541b95c3c0c /src/BlockInServerPluginInterface.h | |
parent | so much big brain time - it hurts (diff) | |
download | cuberite-903bcfc61fd031985e55a604293f85c2597a8320.tar cuberite-903bcfc61fd031985e55a604293f85c2597a8320.tar.gz cuberite-903bcfc61fd031985e55a604293f85c2597a8320.tar.bz2 cuberite-903bcfc61fd031985e55a604293f85c2597a8320.tar.lz cuberite-903bcfc61fd031985e55a604293f85c2597a8320.tar.xz cuberite-903bcfc61fd031985e55a604293f85c2597a8320.tar.zst cuberite-903bcfc61fd031985e55a604293f85c2597a8320.zip |
Diffstat (limited to 'src/BlockInServerPluginInterface.h')
-rw-r--r-- | src/BlockInServerPluginInterface.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/BlockInServerPluginInterface.h b/src/BlockInServerPluginInterface.h index 1c6eff193..f3ed774f7 100644 --- a/src/BlockInServerPluginInterface.h +++ b/src/BlockInServerPluginInterface.h @@ -29,12 +29,12 @@ public: virtual bool CallHookPlayerBreakingBlock(cPlayer & a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta) override { - return cPluginManager::Get()->CallHookPlayerBreakingBlock(a_Player, a_BlockX, a_BlockY, a_BlockZ, static_cast<char>(a_BlockFace), a_BlockType, a_BlockMeta); + return cPluginManager::Get()->CallHookPlayerBreakingBlock(a_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_BlockType, a_BlockMeta); } virtual bool CallHookPlayerBrokenBlock(cPlayer & a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta) override { - return cPluginManager::Get()->CallHookPlayerBrokenBlock(a_Player, a_BlockX, a_BlockY, a_BlockZ, static_cast<char>(a_BlockFace), a_BlockType, a_BlockMeta); + return cPluginManager::Get()->CallHookPlayerBrokenBlock(a_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_BlockType, a_BlockMeta); } private: |