From e6f433d0c373c80ff06ee4e4592fa9319e8dca74 Mon Sep 17 00:00:00 2001 From: 4Evergreen4 Date: Thu, 21 Aug 2014 17:32:57 -0400 Subject: Small fix. --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index f62a971..3dd4c17 100644 --- a/init.lua +++ b/init.lua @@ -55,7 +55,7 @@ minetest.register_node("trash_can:trash_can_wooden",{ for i = 1, inv:get_size("main") do inv:set_stack("main", i, nil) end - minetest.sound_play("trash", {to_player=player_name, gain = 1.0}) + minetest.sound_play("trash", {to_player=sender:get_player_name(), gain = 1.0}) end end, }) -- cgit v1.2.3