mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-20 01:46:15 +00:00
possible fix for getplayermodifiers?
This commit is contained in:
1 parent
aba4b30027
commit
09ce9f7cfb
1 file changed
+2
-2
@@ -180,9 +180,9 @@ public static class ModifierManager
|
||||
|
||||
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, []);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user