diff options
author | BlockMen <nmuelll@web.de> | 2015-10-24 12:28:35 +0200 |
---|---|---|
committer | BlockMen <nmuelll@web.de> | 2015-11-07 13:23:38 +0100 |
commit | 2a12579fab7803fdee2fac2fa8a6837f131dde7a (patch) | |
tree | fc4229b476b979d52d91d1a2f3f9ed6082f14328 /src/script/common | |
parent | 578649bd158a756adc966609f72444dc845355f0 (diff) | |
download | minetest-2a12579fab7803fdee2fac2fa8a6837f131dde7a.tar.gz minetest-2a12579fab7803fdee2fac2fa8a6837f131dde7a.tar.bz2 minetest-2a12579fab7803fdee2fac2fa8a6837f131dde7a.zip |
Add support for audio feedback if placing node failed
Diffstat (limited to 'src/script/common')
-rw-r--r-- | src/script/common/c_content.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script/common/c_content.cpp b/src/script/common/c_content.cpp index 787541ad0..fe429b5d4 100644 --- a/src/script/common/c_content.cpp +++ b/src/script/common/c_content.cpp @@ -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); |