Skip to content

Commit

Permalink
Merge pull request #115 from Seadragon91/master
Browse files Browse the repository at this point in the history
This fixes nil pointers in repairing items
  • Loading branch information
madmaxoft committed Dec 16, 2014
2 parents 0b5342e + 0d07a82 commit 6e9d612
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion itemrepair.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ function OnCraftingNoRecipe(Player, Grid, Recipe)
for y = 0, Grid:GetHeight() - 1 do
local Item = Grid:GetItem(x, y)
if (Item.m_ItemType ~= E_ITEM_EMPTY) then
Item.x = x
Item.y = y
table.insert(Items, Item)
end
end
Expand Down Expand Up @@ -199,4 +201,4 @@ function OnCraftingNoRecipe(Player, Grid, Recipe)
return true
end
return false
end
end

0 comments on commit 6e9d612

Please sign in to comment.