From 79e5a6dfa3895c762a7a6317e788003069126079 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 8 Feb 2019 22:23:26 +0100 Subject: [PATCH] Fix typo in 3d_armor_stand --- mods/ITEMS/minetest-3d_armor/3d_armor_stand/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/ITEMS/minetest-3d_armor/3d_armor_stand/init.lua b/mods/ITEMS/minetest-3d_armor/3d_armor_stand/init.lua index 75a050e75..76dcec55e 100644 --- a/mods/ITEMS/minetest-3d_armor/3d_armor_stand/init.lua +++ b/mods/ITEMS/minetest-3d_armor/3d_armor_stand/init.lua @@ -123,7 +123,7 @@ minetest.register_node("3d_armor_stand:armor_stand", { local protname = clicker:get_player_name() if minetest.is_protected(pos, protname) then minetest.record_protection_violation(pos, protname) - return + return itemstack end -- Check if player wields armor local name = itemstack:get_name() @@ -139,7 +139,7 @@ minetest.register_node("3d_armor_stand:armor_stand", { -- If player wields armor, put it on armor stand local inv = minetest.get_inventory({type = "node", pos = pos}) local wielditem = clicker:get_wielded_item() - if not inv then return end + if not inv then return itemstack end if list then -- ... but only if the slot is free local single_item = ItemStack(itemstack) @@ -148,7 +148,7 @@ minetest.register_node("3d_armor_stand:armor_stand", { inv:add_item(list, single_item) update_entity(pos) itemstack:take_item() - return itmstack + return itemstack end end