1
0
mirror of https://codeberg.org/tenplus1/mobs_animal.git synced 2024-12-23 01:10:25 +01:00

updated to newer 0.4.16 functions

This commit is contained in:
TenPlus1 2017-10-09 11:57:20 +01:00
parent 7fdb9063b8
commit 3b72ac1357
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ mobs:register_mob("mobs_animal:bunny", {
if item:get_name() == "mobs:lava_orb" then 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() item:take_item()
clicker:set_wielded_item(item) clicker:set_wielded_item(item)
end end

View File

@ -158,7 +158,7 @@ for _, col in ipairs(all_colours) do
ent.tamed = true ent.tamed = true
-- take item -- take item
if not minetest.setting_getbool("creative_mode") then if not mobs.is_creative(clicker:get_player_name()) then
item:take_item() item:take_item()
clicker:set_wielded_item(item) clicker:set_wielded_item(item)
end end