diff --git a/nodes/hoppers.lua b/nodes/hoppers.lua index 2c40696..4f7da59 100644 --- a/nodes/hoppers.lua +++ b/nodes/hoppers.lua @@ -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, -}) \ No newline at end of file +})