From 24832c534f68419dc442b3e31972a9ba1ba05c7d Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 24 Mar 2020 19:11:25 +0100 Subject: [PATCH] Fix crash in horse code --- mods/ENTITIES/mobs_mc/horse.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/mods/ENTITIES/mobs_mc/horse.lua b/mods/ENTITIES/mobs_mc/horse.lua index b0379f146e..c9a8a76607 100644 --- a/mods/ENTITIES/mobs_mc/horse.lua +++ b/mods/ENTITIES/mobs_mc/horse.lua @@ -256,6 +256,7 @@ local horse = { local armor = minetest.get_item_group(iname, "horse_armor") self._horse_armor = iname if not minetest.settings:get_bool("creative_mode") then + local w = clicker:get_wielded_item() w:take_item() clicker:set_wielded_item(w) end