| 1031 | |
| 1032 | |
| 1033 | bool cPluginManager::CallHookPlayerUsingBlock(cPlayer & a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, int a_CursorX, int a_CursorY, int a_CursorZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta) |
| 1034 | { |
| 1035 | HookMap::iterator Plugins = m_Hooks.find(HOOK_PLAYER_USING_BLOCK); |
| 1036 | if (Plugins == m_Hooks.end()) |
| 1037 | { |
| 1038 | return false; |
| 1039 | } |
| 1040 | for (PluginList::iterator itr = Plugins->second.begin(); itr != Plugins->second.end(); ++itr) |
| 1041 | { |
| 1042 | if ((*itr)->OnPlayerUsingBlock(a_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace, a_CursorX, a_CursorY, a_CursorZ, a_BlockType, a_BlockMeta)) |
| 1043 | { |
| 1044 | return true; |
| 1045 | } |
| 1046 | } |
| 1047 | return false; |
| 1048 | } |
| 1049 | |
| 1050 | |
| 1051 |
no test coverage detected