Replace deprecated settings method (#9)

This commit is contained in:
texmex 2017-06-18 22:22:33 +02:00 committed by FaceDeer
parent c8b83cd72d
commit 8a7ebcf6ca

@ -45,7 +45,7 @@ local hopper_on_place = function(itemstack, placer, pointed_thing, node_name)
if success then if success then
local meta = minetest.get_meta(pos2) local meta = minetest.get_meta(pos2)
meta:set_string("placer", placer:get_player_name()) meta:set_string("placer", placer:get_player_name())
if not minetest.setting_getbool("creative_mode") then if not minetest.settings:get_bool("creative_mode") then
itemstack:take_item() itemstack:take_item()
end end
end end