Skip to content

Commit

Permalink
possible fix for getplayermodifiers?
Browse files Browse the repository at this point in the history
  • Loading branch information
XtraCube committed Aug 31, 2024
1 parent aba4b30 commit 09ce9f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MiraAPI/Modifiers/ModifierManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ internal static void HandleSyncModifiers(NetData[] data)

private static NetData GetPlayerModifiers(PlayerControl player)
{
var bytes = new List<byte>();
List<byte> bytes = [];
var modifierComponent = player.GetComponent<ModifierComponent>();
if (modifierComponent == null)
if (modifierComponent == null || !modifierComponent)
{
return new NetData(player.PlayerId, []);
}
Expand Down

0 comments on commit 09ce9f7

Please sign in to comment.