From 31b367eb838569918649312bbf36e900c24061ed Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 8 Apr 2020 02:29:12 +0200 Subject: [PATCH] Fix horse-related crash --- mods/ENTITIES/mobs_mc/horse.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENTITIES/mobs_mc/horse.lua b/mods/ENTITIES/mobs_mc/horse.lua index 46fd1419..0bc524d2 100644 --- a/mods/ENTITIES/mobs_mc/horse.lua +++ b/mods/ENTITIES/mobs_mc/horse.lua @@ -255,8 +255,8 @@ local horse = { -- Put on armor and take armor from player's inventory local armor = minetest.get_item_group(iname, "horse_armor") self._horse_armor = iname + local w = clicker:get_wielded_item() if not minetest.settings:get_bool("creative_mode") then - local w = clicker:get_wielded_item() w:take_item() clicker:set_wielded_item(w) end