diff --git a/mods/ENTITIES/mobs_mc/horse.lua b/mods/ENTITIES/mobs_mc/horse.lua index b0379f146..810dece64 100644 --- a/mods/ENTITIES/mobs_mc/horse.lua +++ b/mods/ENTITIES/mobs_mc/horse.lua @@ -253,6 +253,7 @@ local horse = { -- Put on armor and take armor from player's inventory + local w = clicker:get_wielded_item() local armor = minetest.get_item_group(iname, "horse_armor") self._horse_armor = iname if not minetest.settings:get_bool("creative_mode") then