Fix horse-related crash

This commit is contained in:
Wuzzy 2020-04-08 02:29:12 +02:00
parent f27615d77e
commit 31b367eb83

View File

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