Skip to content
This repository has been archived by the owner on Sep 21, 2024. It is now read-only.

Commit

Permalink
fix: fix loadout melee
Browse files Browse the repository at this point in the history
  • Loading branch information
leia-uwu committed Jul 5, 2023
1 parent 9390588 commit b9062bd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/game/objects/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,10 @@ export class Player extends GameObject {

// Set loadout
if (AllowedSkins.includes(loadout.outfit)) this.loadout.outfit = TypeToId[loadout.outfit];
if (AllowedMelee.includes(loadout.melee)) this.loadout.melee = TypeToId[loadout.melee];
if (AllowedMelee.includes(loadout.melee)) {
this.loadout.melee = TypeToId[loadout.melee];
this.loadout.meleeType = loadout.melee;
}
if (AllowedHeal.includes(loadout.heal)) this.loadout.heal = TypeToId[loadout.heal];
if (AllowedBoost.includes(loadout.boost)) this.loadout.boost = TypeToId[loadout.boost];

Expand Down

0 comments on commit b9062bd

Please sign in to comment.