diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2017-10-09 11:57:20 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2017-10-09 11:57:20 +0100 |
commit | 3b72ac1357dce4ce7bc7f05e3708c5c161abe0f9 (patch) | |
tree | 3f5010f5588e747790dff9071aa3271457b40610 | |
parent | 7fdb9063b87b5e4690a74433dc51b3670ff9423c (diff) |
updated to newer 0.4.16 functions
-rw-r--r-- | bunny.lua | 2 | ||||
-rw-r--r-- | sheep.lua | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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 @@ -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 |