diff --git a/mods/mobs/npc.lua b/mods/mobs/npc.lua index c1c59731..59dfba63 100755 --- a/mods/mobs/npc.lua +++ b/mods/mobs/npc.lua @@ -87,9 +87,7 @@ mobs:register_mob("mobs:npc", { local pos = self.object:getpos() pos.y = pos.y + 0.5 minetest.add_item(pos, {name = mobs.npc_drops[math.random(1,#mobs.npc_drops)]}) - elseif item:get_name() == "default:diamond" then - self.diamond_count = (self.diamond_count or 0) + 1 - if self.diamond_count < 4 then return end + else if self.owner == "" then self.owner = clicker:get_player_name() else