From ce0c3e8eb87452a92c46754ef49380b6f0131fb0 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Mon, 9 Oct 2017 11:32:00 +0100 Subject: updating to newer 0.4.16 functions --- beanpole.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'beanpole.lua') diff --git a/beanpole.lua b/beanpole.lua index 8afead6..e8b7455 100644 --- a/beanpole.lua +++ b/beanpole.lua @@ -121,7 +121,7 @@ minetest.register_node("farming:beanpole", { minetest.set_node(pointed_thing.above, {name = "farming:beanpole"}) - if not minetest.setting_getbool("creative_mode") then + if not farming.is_creative(placer:get_player_name()) then itemstack:take_item() end -- cgit v1.2.3