From ec8b496e5355711d8c420a10d2d117db498e8d95 Mon Sep 17 00:00:00 2001 From: Gustavo Ramos Rehermann Date: Sat, 3 Feb 2024 04:08:39 -0300 Subject: [PATCH] Use AddInventory instead of Weapon.GiveTo --- Classes/MushMatchMutator.uc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/MushMatchMutator.uc b/Classes/MushMatchMutator.uc index dc949de..78eebfb 100644 --- a/Classes/MushMatchMutator.uc +++ b/Classes/MushMatchMutator.uc @@ -189,7 +189,7 @@ simulated event ModifyPlayer(Pawn Other) { } w = Other.Weapon; - Other.Spawn(class'MushBeacon').GiveTo(Other); + Other.AddInventory(Spawn(class'MushBeacon')); // Give a Sporifier IF the match has already started and the player added is in the mush team if (Role == ROLE_Authority && MushMatch(Level.Game).bMushSelected) { @@ -201,7 +201,7 @@ simulated event ModifyPlayer(Pawn Other) { } if (MPRL.bMush) { - Other.Spawn(class'Sporifier').GiveTo(Other); + Other.AddInventory(Spawn(class'Sporifier')); } }