diff options
Diffstat (limited to 'gamemode/inventorysystem/shapedinventory/sh_shaped.lua')
| -rw-r--r-- | gamemode/inventorysystem/shapedinventory/sh_shaped.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gamemode/inventorysystem/shapedinventory/sh_shaped.lua b/gamemode/inventorysystem/shapedinventory/sh_shaped.lua index de7ccd9..00beb7f 100644 --- a/gamemode/inventorysystem/shapedinventory/sh_shaped.lua +++ b/gamemode/inventorysystem/shapedinventory/sh_shaped.lua @@ -24,7 +24,7 @@ local function canfitin(self,x,y,shape) local absx,absy = x + rn - 1, y + cn - 1 local slot = calcposition(self.dimx,self.dimy,absx,absy) print("Checking slot", slot) - if col and ((self.tracker[slot] ~= nil) or (slot > self.dimx * self.dimy)) then + if col and ((self.tracker[slot] ~= nil) or (absx > self.dimx) or (absy > self.dimy)) then return false end end |
