From c421fcc93ff2d3d5eefdf62168d74938cf139845 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Mon, 9 Oct 2017 11:56:48 +0100 Subject: [PATCH] updated to newer 0.4.16 functions --- igor.lua | 2 +- npc.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/igor.lua b/igor.lua index 8c2ef53..350dc21 100644 --- a/igor.lua +++ b/igor.lua @@ -78,7 +78,7 @@ mobs:register_mob("mobs_npc:igor", { -- right clicking with gold lump drops random item from mobs.npc_drops if item:get_name() == "default:gold_lump" then - if not minetest.setting_getbool("creative_mode") then + if not mobs.is_creative(name) then item:take_item() clicker:set_wielded_item(item) end diff --git a/npc.lua b/npc.lua index 91e2fa4..561e273 100644 --- a/npc.lua +++ b/npc.lua @@ -77,7 +77,7 @@ mobs:register_mob("mobs_npc:npc", { -- right clicking with gold lump drops random item from mobs.npc_drops if item:get_name() == "default:gold_lump" then - if not minetest.setting_getbool("creative_mode") then + if not mobs.is_creative(name) then item:take_item() clicker:set_wielded_item(item) end