mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 13:53:45 +01:00
Fix horse-related crash
This commit is contained in:
parent
f27615d77e
commit
31b367eb83
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user