From 98d859fc2225f6b1ad62f4d475703dc280a75dd0 Mon Sep 17 00:00:00 2001 From: AntumDeluge Date: Fri, 12 May 2017 23:40:30 -0700 Subject: Replace deprecated method 'setting_getbool' with 'settings:get_bool' --- polebean.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'polebean.lua') diff --git a/polebean.lua b/polebean.lua index 91ec758..afe8fb1 100644 --- a/polebean.lua +++ b/polebean.lua @@ -175,7 +175,7 @@ minetest.register_node("crops:beanpoles", { end minetest.set_node(pointed_thing.above, {name="crops:beanpole_base"}) minetest.set_node(top, {name="crops:beanpole_top"}) - if not minetest.setting_getbool("creative_mode") then + if not minetest.settings:get_bool("creative_mode") then itemstack:take_item() end return itemstack @@ -207,7 +207,7 @@ minetest.register_craftitem("crops:green_bean_seed", { else return end - if not minetest.setting_getbool("creative_mode") then + if not minetest.settings:get_bool("creative_mode") then itemstack:take_item() end return itemstack -- cgit v1.2.3