summaryrefslogtreecommitdiff
path: root/OnekoNet.cs
diff options
context:
space:
mode:
authorSarah Bradley <git@sarahduck.ca>2023-12-25 01:50:06 -0800
committerSarah Bradley <git@sarahduck.ca>2023-12-25 01:50:06 -0800
commit828672047ffd306f78b93f11c3d9a8dfafa3d653 (patch)
tree06cc9c9ef7c4554574ee3855dd681fd88b8b408a /OnekoNet.cs
parentff3cbc5b49f8618531c5778d69b49c0aa4a9442a (diff)
Added spectator mode, and fixed some networking issues
Diffstat (limited to 'OnekoNet.cs')
-rw-r--r--OnekoNet.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OnekoNet.cs b/OnekoNet.cs
index ee780c6..6bee562 100644
--- a/OnekoNet.cs
+++ b/OnekoNet.cs
@@ -43,7 +43,7 @@ class OnekoNet : Oneko
public static void SpawnNetNeko(ClientUser user)
{
- if (!NetNekos.ContainsKey(user.Id)) {
+ if (!user.SpectatorMode && !NetNekos.ContainsKey(user.Id)) {
Bitmap spriteSheet = Bitmap.Deserialize(user.SpriteSheet);
NetNekos.Add(user.Id, new OnekoNet(spriteSheet, user));
}