mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-01-11 01:29:36 +01:00
Fix horse-related crash
This commit is contained in:
parent
f27615d77e
commit
31b367eb83
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue