Fix crash in horse code

This commit is contained in:
Wuzzy 2020-03-24 19:11:25 +01:00
parent d5111dfb66
commit 24832c534f

View File

@ -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