updated to newer 0.4.16 functions
This commit is contained in:
parent
d70ccb4966
commit
c421fcc93f
2
igor.lua
2
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
|
||||
|
2
npc.lua
2
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user