mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
[CSM] Add event on_place_node API lua (#5548)
* [CSM] Add event on_place_node API lua
This commit is contained in:
parent
ecf08255b0
commit
dc5bc6cac7
12 changed files with 88 additions and 37 deletions
|
@ -3730,6 +3730,9 @@ void Game::handlePointingAtNode(const PointedThing &pointed, const ItemDefinitio
|
|||
// Read the sound
|
||||
soundmaker->m_player_rightpunch_sound =
|
||||
playeritem_def.sound_place;
|
||||
|
||||
if (client->moddingEnabled())
|
||||
client->getScript()->on_placenode(pointed, playeritem_def);
|
||||
} else {
|
||||
soundmaker->m_player_rightpunch_sound =
|
||||
SimpleSoundSpec();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue