Skip to content

Commit

Permalink
feat(server/hooks): add fromType to typeFilter (#1387)
Browse files Browse the repository at this point in the history
  • Loading branch information
FjamZoo authored Jul 25, 2023
1 parent 3ef7b3d commit d1518ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/hooks/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ local function TriggerEventHooks(event, payload)
goto skipLoop
end

if hook.typeFilter and not typeFilter(hook.typeFilter, payload.inventoryType or payload.shopType) then
if hook.typeFilter and not typeFilter(hook.typeFilter, payload.inventoryType or payload.shopType or payload.fromType) then
goto skipLoop
end

Expand Down

0 comments on commit d1518ca

Please sign in to comment.