summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author4Evergreen4 <eljohnson@frontier.com>2014-08-21 17:32:57 -0400
committer4Evergreen4 <eljohnson@frontier.com>2014-08-21 17:32:57 -0400
commite6f433d0c373c80ff06ee4e4592fa9319e8dca74 (patch)
tree63090785559b88c9bf7f0c30f582f605adf79490
parenta94e5872aafd46e9508f733a7955b7dd5599d5dd (diff)
Small fix.
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
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,
})