summaryrefslogtreecommitdiff
path: root/mesecons_noteblock/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'mesecons_noteblock/init.lua')
-rw-r--r--mesecons_noteblock/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesecons_noteblock/init.lua b/mesecons_noteblock/init.lua
index 577cee0..40e2577 100644
--- a/mesecons_noteblock/init.lua
+++ b/mesecons_noteblock/init.lua
@@ -4,7 +4,7 @@ minetest.register_node("mesecons_noteblock:noteblock", {
is_ground_content = false,
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2},
on_punch = function(pos, node, puncher) -- change sound when punched
- if minetest.is_protected(pos, puncher and puncher:get_player_name()) then
+ if minetest.is_protected(pos, puncher and puncher:get_player_name() or "") then
return
end