Skip to content

Commit

Permalink
Merge pull request #5 from tbdscripts/hotfix/ps2-prem
Browse files Browse the repository at this point in the history
fix: PS2 Premium points action
  • Loading branch information
dotCore-off authored Dec 18, 2022
2 parents c5d5cfc + 3fabc90 commit fa30bc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/cosmo/action_types/sh_pointshop_two.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Cosmo.ActionType.Register(PS2_STANDARD_POINTS)

local PS2_PREMIUM_POINTS = Cosmo.ActionType.New("ps2_premium_points")

function PS2_PREMIUM_POINTS:HandlePurchase()
function PS2_PREMIUM_POINTS:HandlePurchase(action, order, ply)
if not isfunction(ply.PS2_AddPremiumPoints) then
Cosmo.Log.Warning("(POINTSHOP2)", "No pointshop system was found on this server")
return false
Expand All @@ -54,4 +54,4 @@ function PS2_PREMIUM_POINTS:HandleExpiration()
return true
end

Cosmo.ActionType.Register(PS2_PREMIUM_POINTS)
Cosmo.ActionType.Register(PS2_PREMIUM_POINTS)

0 comments on commit fa30bc7

Please sign in to comment.