Skip to content

Commit

Permalink
fix(prem): missing args to func
Browse files Browse the repository at this point in the history
  • Loading branch information
dotCore-off authored Dec 18, 2022
1 parent c5d5cfc commit 3fabc90
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 3fabc90

Please sign in to comment.