From 98d859fc2225f6b1ad62f4d475703dc280a75dd0 Mon Sep 17 00:00:00 2001 From: AntumDeluge <antumdeluge@gmail.com> Date: Fri, 12 May 2017 23:40:30 -0700 Subject: Replace deprecated method 'setting_getbool' with 'settings:get_bool' --- melon.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'melon.lua') diff --git a/melon.lua b/melon.lua index f92c9a1..696b108 100644 --- a/melon.lua +++ b/melon.lua @@ -40,7 +40,7 @@ minetest.register_node("crops:melon_seed", { return end crops.plant(pointed_thing.above, {name="crops:melon_plant_1"}) - 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