Fix several "undeclared global" errors

This commit is contained in:
Wuzzy 2019-02-08 22:44:26 +01:00
parent fb3db5077c
commit a7d429a017
4 changed files with 7 additions and 6 deletions

View file

@ -398,14 +398,13 @@ minetest.register_node("mcl_flowers:waterlily", {
local idef = itemstack:get_definition()
if idef.sounds and idef.sounds.place then
minetest.sound_play(idef.sounds.place, {pos=above, gain=1})
minetest.sound_play(idef.sounds.place, {pos=pointed_thing.above, gain=1})
end
if not minetest.settings:get_bool("creative_mode") then
itemstack:take_item()
end
else
minetest.chat_send_player(player_name, "Node is protected")
minetest.record_protection_violation(pos, player_name)
end
end