From 2a12579fab7803fdee2fac2fa8a6837f131dde7a Mon Sep 17 00:00:00 2001 From: BlockMen Date: Sat, 24 Oct 2015 12:28:35 +0200 Subject: Add support for audio feedback if placing node failed --- src/script/common/c_content.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/script') 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); -- cgit v1.2.3