Skip to content

Commit

Permalink
Use AddInventory instead of Weapon.GiveTo
Browse files Browse the repository at this point in the history
  • Loading branch information
wallabra committed Feb 3, 2024
1 parent 9aa9b03 commit ec8b496
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/MushMatchMutator.uc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -201,7 +201,7 @@ simulated event ModifyPlayer(Pawn Other) {
}

if (MPRL.bMush) {
Other.Spawn(class'Sporifier').GiveTo(Other);
Other.AddInventory(Spawn(class'Sporifier'));
}
}

Expand Down

0 comments on commit ec8b496

Please sign in to comment.