1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-22 16:10:18 +01:00

fix bad player ref (sneder -> clicker)

This commit is contained in:
Vanessa Dannenberg 2019-05-26 17:13:32 -04:00
parent 7cdfc3b49c
commit 960f4c4200

View File

@ -88,7 +88,7 @@ local brightness_tab = {
function homedecor.toggle_light(pos, node, clicker, itemstack, pointed_thing) function homedecor.toggle_light(pos, node, clicker, itemstack, pointed_thing)
if minetest.is_protected(pos, clicker:get_player_name()) then if minetest.is_protected(pos, clicker:get_player_name()) then
minetest.record_protection_violation(pos, minetest.record_protection_violation(pos,
sender:get_player_name()) clicker:get_player_name())
return return
end end
local sep = string.find(node.name, "_o", -5) local sep = string.find(node.name, "_o", -5)