mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add support for audio feedback if placing node failed
This commit is contained in:
parent
578649bd15
commit
2a12579fab
5 changed files with 19 additions and 4 deletions
|
@ -100,6 +100,9 @@ ItemDefinition read_item_definition(lua_State* L,int index,
|
|||
lua_getfield(L, -1, "place");
|
||||
read_soundspec(L, -1, def.sound_place);
|
||||
lua_pop(L, 1);
|
||||
lua_getfield(L, -1, "place_failed");
|
||||
read_soundspec(L, -1, def.sound_place_failed);
|
||||
lua_pop(L, 1);
|
||||
}
|
||||
lua_pop(L, 1);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue