updated to newer 0.4.16 functions

master
TenPlus1 2017-10-09 11:56:48 +01:00
parent d70ccb4966
commit c421fcc93f
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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