Skip to content

Commit

Permalink
Merge pull request #235 from bizzclaw/patch-1
Browse files Browse the repository at this point in the history
Added support for ITEM.Slot
  • Loading branch information
adamdburton committed Dec 23, 2015
2 parents 981c83b + a5076ee commit a6211d3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lua/pointshop/sv_player_extension.lua
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,15 @@ function Player:PS_EquipItem(item_id)
end
end

if PS.Items[item_id].Slot then
for id, item in pairs(self.PS_Items) do
if item_id != id and PS.Items[id].Slot and PS.Items[id].Slot == PS.Items[item_id].Slot and self.PS_Items[id].Equipped then
self:PS_HolsterItem(id)
end
end
end


if CATEGORY.SharedCategories then
local ConCatCats = CATEGORY.Name
for p, c in pairs( CATEGORY.SharedCategories ) do
Expand Down

0 comments on commit a6211d3

Please sign in to comment.