Fix crash in horse code
This commit is contained in:
parent
d5111dfb66
commit
24832c534f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue