mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 00:19:32 +01:00
Fix armor stand repairing damaged armor
This commit is contained in:
parent
d66de5adfb
commit
7055b68f6b
1 changed files with 2 additions and 1 deletions
|
@ -132,7 +132,8 @@ minetest.register_node("3d_armor_stand:armor_stand", {
|
||||||
if not inv then return end
|
if not inv then return end
|
||||||
if list then
|
if list then
|
||||||
-- ... but only if the slot is free
|
-- ... but only if the slot is free
|
||||||
local single_item = itemstack:get_name()
|
local single_item = ItemStack(itemstack)
|
||||||
|
single_item:set_count(1)
|
||||||
if inv:is_empty(list) then
|
if inv:is_empty(list) then
|
||||||
inv:add_item(list, single_item)
|
inv:add_item(list, single_item)
|
||||||
update_entity(pos)
|
update_entity(pos)
|
||||||
|
|
Loading…
Reference in a new issue