summaryrefslogtreecommitdiff
path: root/src/script/common/c_content.cpp
diff options
context:
space:
mode:
authorBlockMen <nmuelll@web.de>2015-10-24 12:28:35 +0200
committerBlockMen <nmuelll@web.de>2015-11-07 13:23:38 +0100
commit2a12579fab7803fdee2fac2fa8a6837f131dde7a (patch)
treefc4229b476b979d52d91d1a2f3f9ed6082f14328 /src/script/common/c_content.cpp
parent578649bd158a756adc966609f72444dc845355f0 (diff)
downloadminetest-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/c_content.cpp')
-rw-r--r--src/script/common/c_content.cpp3
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);