mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-19 09:31:07 +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
|
-- Put on armor and take armor from player's inventory
|
||||||
local armor = minetest.get_item_group(iname, "horse_armor")
|
local armor = minetest.get_item_group(iname, "horse_armor")
|
||||||
self._horse_armor = iname
|
self._horse_armor = iname
|
||||||
if not minetest.settings:get_bool("creative_mode") then
|
|
||||||
local w = clicker:get_wielded_item()
|
local w = clicker:get_wielded_item()
|
||||||
|
if not minetest.settings:get_bool("creative_mode") then
|
||||||
w:take_item()
|
w:take_item()
|
||||||
clicker:set_wielded_item(w)
|
clicker:set_wielded_item(w)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue