mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-19 09:31:07 +01:00
Fix that fucking mending armor crash
This commit is contained in:
parent
cb82e3c9c5
commit
04436ea5f7
1 changed files with 0 additions and 4 deletions
|
@ -275,10 +275,6 @@ function mcl_experience.add_experience(player, experience)
|
||||||
end
|
end
|
||||||
stack:set_wear(math.floor(new_wear))
|
stack:set_wear(math.floor(new_wear))
|
||||||
inv:set_stack(list, index, stack)
|
inv:set_stack(list, index, stack)
|
||||||
if can.list == "armor" then
|
|
||||||
local armor_inv = minetest.get_inventory({type = "detached", name = player:get_player_name() .. "_armor"})
|
|
||||||
armor_inv:set_stack(list, index, stack)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local old_bar, old_xp, old_level = temp_pool.bar, temp_pool.xp, temp_pool.level
|
local old_bar, old_xp, old_level = temp_pool.bar, temp_pool.xp, temp_pool.level
|
||||||
|
|
Loading…
Reference in a new issue