From ed52e494087081fa2d6f927b400be9d12309fd90 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 10 Jun 2018 13:20:19 +0200 Subject: [PATCH] Heal trader for unlocking trades --- mods/ENTITIES/mobs_mc/villager.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mods/ENTITIES/mobs_mc/villager.lua b/mods/ENTITIES/mobs_mc/villager.lua index 5478a1e023..e569ccbe02 100644 --- a/mods/ENTITIES/mobs_mc/villager.lua +++ b/mods/ENTITIES/mobs_mc/villager.lua @@ -853,6 +853,9 @@ local trade_inventory = { trades[t].locked = false trades[t].trade_counter = 0 end + -- Also heal trader for unlocking stuff + -- TODO: Replace by Regeneration I + trader.health = math.min(trader.hp_max, trader.health + 4) end trade.trade_counter = trade.trade_counter + 1 if trade.trade_counter >= 12 then