Merge pull request #2 from tacotexmex/patch-1

Replace deprecated settings method
This commit is contained in:
sofar 2017-10-03 09:12:32 -07:00 committed by GitHub
commit 6bce72ae19

View File

@ -57,7 +57,7 @@ local function flowerpot_on_rightclick(pos, node, clicker, itemstack, pointed_th
end
minetest.sound_play(def.sounds.place, {pos = pos})
minetest.swap_node(pos, {name = name})
if not minetest.setting_getbool("creative_mode") then
if not minetest.settings:get_bool("creative_mode") then
itemstack:take_item()
end
return itemstack