Unlimited bug for receiving ServerRewards

Task rewards are set with ServerRewards and other items. If the player's inventory is full, they cannot end the task when it is completed, but they can end the task infinitely to repeatedly claim ServerRewards. This is a major bug, who can help me?

I've known about this for a while, and finally got around to making a patch for this.

On line 963, make a new line and insert this

if (rewards.Count() >= (30 - player.inventory.AllItems().Count())) return false;


It should be the first if statement of the private bool GiveReward(BasePlayer player, List<RewardItem> rewards) function.

0uogNpSklFFrjPe.jpg iLakSkiL

I've known about this for a while, and finally got around to making a patch for this.

On line 963, make a new line and insert this

if (rewards.Count() >= (30 - player.inventory.AllItems().Count())) return false;

It should be the first if statement of the private bool GiveReward(BasePlayer player, List<RewardItem> rewards) function.

Could you paste a little more to clarify what you did for this fix?