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
local meta = minetest.get_meta(pos2)
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()
end
end
@ -224,4 +224,4 @@ minetest.register_node("hopper:hopper_side", {
minetest.log("action", S("@1 moves stuff from hopper at @2",
player:get_player_name(), minetest.pos_to_string(pos)))
end,
})
})