From 3b72ac1357dce4ce7bc7f05e3708c5c161abe0f9 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Mon, 9 Oct 2017 11:57:20 +0100 Subject: [PATCH] updated to newer 0.4.16 functions --- bunny.lua | 2 +- sheep.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bunny.lua b/bunny.lua index 8f594a3..f49cd23 100644 --- a/bunny.lua +++ b/bunny.lua @@ -59,7 +59,7 @@ mobs:register_mob("mobs_animal:bunny", { if item:get_name() == "mobs:lava_orb" then - if not minetest.setting_getbool("creative_mode") then + if not mobs.is_creative(clicker:get_player_name()) then item:take_item() clicker:set_wielded_item(item) end diff --git a/sheep.lua b/sheep.lua index 1dde501..1d8e8c0 100644 --- a/sheep.lua +++ b/sheep.lua @@ -158,7 +158,7 @@ for _, col in ipairs(all_colours) do ent.tamed = true -- take item - if not minetest.setting_getbool("creative_mode") then + if not mobs.is_creative(clicker:get_player_name()) then item:take_item() clicker:set_wielded_item(item) end