diff options
Diffstat (limited to 'gamemode')
| -rw-r--r-- | gamemode/inventorysystem/shapedinventory/cl_shaped.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gamemode/inventorysystem/shapedinventory/cl_shaped.lua b/gamemode/inventorysystem/shapedinventory/cl_shaped.lua index d74b629..7c60156 100644 --- a/gamemode/inventorysystem/shapedinventory/cl_shaped.lua +++ b/gamemode/inventorysystem/shapedinventory/cl_shaped.lua @@ -129,9 +129,9 @@ inv.DrawOnDPanel = function(self,panel) --Go through the items, and set the dpanels appropriately. for k,v in pairs(self.tracker) do if type(v) == "table" then - local px = k % self.width - local py = math.ceil(k / self.height) - drawitemat(self,px,py,v) + local column = k % self.width + local row = math.ceil(k / self.height) + drawitemat(self,row,column,v) end end |
