From 4fbc21cc9e8203b91767c2fea477d03b5a5ac462 Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago Da Silva" Date: Sun, 21 Feb 2021 21:40:01 -0300 Subject: [PATCH] fix(Referral): actually reward players who are referring --- data/scripts/talkactions/player/referral.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/scripts/talkactions/player/referral.lua b/data/scripts/talkactions/player/referral.lua index 9f2dd4544..2385429f9 100644 --- a/data/scripts/talkactions/player/referral.lua +++ b/data/scripts/talkactions/player/referral.lua @@ -53,7 +53,7 @@ function refer.onSay(player, words, param) if not referrals then rewards[1](referringPlayer) else - if #rewards < #referrals then + if #rewards > #referrals then rewards[#referrals](referringPlayer) end end