Skip to content

Commit

Permalink
fix error with update_gui
Browse files Browse the repository at this point in the history
  • Loading branch information
Choumiko committed Oct 16, 2015
1 parent 2942ec2 commit 0b134b1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
18 changes: 0 additions & 18 deletions control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -314,24 +314,6 @@ function update_gui(player)
end
gui_init(player)
else
for player, store in pairs(global.storage) do
for name, p in pairs(store) do
for i=#p,1,-1 do
if p[i].from ~= "" and not items[p[i].from] then
global.storage[player][name][i].from = ""
global.storage[player][name][i].to = ""
end
if type(p[i].to) == "table" then
for k, m in pairs(p[i].to) do
if m and not items[m] then
global.storage[player][name][i].to[k] = false
end
end
end
end
end
end

for i,player in pairs(game.players) do
if player.valid and player.connected then
if not global.guiVersion[player.name] then
Expand Down
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ModuleInserter",
"version": "0.1.1",
"version": "0.1.2",
"title": "Module Inserter",
"author": "Choumiko",
"homepage": "",
Expand Down

0 comments on commit 0b134b1

Please sign in to comment.