mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-24 10:45:09 +00:00
Fix crash in horse code
This commit is contained in:
parent
d5111dfb66
commit
24832c534f
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue