1
0
mirror of https://github.com/minetest-mods/3d_armor.git synced 2024-12-26 18:50:40 +01:00

Move comment :)

This commit is contained in:
stujones11 2018-05-23 20:53:35 +01:00
parent 83f3e01efa
commit a5ddc3e60a

View File

@ -481,6 +481,7 @@ armor.save_armor_inventory = function(self, player)
if not name then if not name then
return return
end end
-- Workaround for detached inventory swap exploit
local armor_list = {} local armor_list = {}
local armor_list_string = player:get_attribute("3d_armor_inventory") local armor_list_string = player:get_attribute("3d_armor_inventory")
if armor_list_string then if armor_list_string then
@ -488,7 +489,6 @@ armor.save_armor_inventory = function(self, player)
armor_list[item] = item ~= "" and i or nil armor_list[item] = item ~= "" and i or nil
end end
end end
-- Workaround for detached inventory swap exploit
local elements = {} local elements = {}
local player_inv = player:get_inventory() local player_inv = player:get_inventory()
for i = 1, 6 do for i = 1, 6 do