mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-12-27 11:10:39 +01:00
Move comment :)
This commit is contained in:
parent
83f3e01efa
commit
a5ddc3e60a
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user