From 5568cc4cff5258ed867527186285e6e7b007b42e Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Sun, 12 Apr 2015 23:24:01 +0200 Subject: [PATCH] Fixed NPC counter --- mods/mobs/npc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/mobs/npc.lua b/mods/mobs/npc.lua index f4e8df48..ff926124 100755 --- a/mods/mobs/npc.lua +++ b/mods/mobs/npc.lua @@ -88,7 +88,7 @@ mobs:register_mob("mobs:npc", { 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) + self.diamond_count = (self.diamond_count or 0) + 1 if not minetest.setting_getbool("creative_mode") then item:take_item() clicker:set_wielded_item(item)