mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
add 'normal' argument to on_use_on_block event
This commit is contained in:
parent
0f26d7c93a
commit
d6696b54cb
6 changed files with 12 additions and 13 deletions
|
|
@ -71,7 +71,7 @@ namespace scripting {
|
|||
|
||||
/// @brief Called on RMB click on block with the item selected
|
||||
/// @return true if prevents default action
|
||||
bool on_item_use_on_block(Player* player, const ItemDef* item, int x, int y, int z);
|
||||
bool on_item_use_on_block(Player* player, const ItemDef* item, glm::ivec3 ipos, glm::ivec3 normal);
|
||||
|
||||
/// @brief Called on LMB click on block with the item selected
|
||||
/// @return true if prevents default action
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue