diff options
| author | Sarah B <git@sarahduck.ca> | 2024-01-22 18:22:31 -0800 |
|---|---|---|
| committer | Sarah B <git@sarahduck.ca> | 2024-01-22 18:22:31 -0800 |
| commit | 3f4fe74715124357ba3341e635fdb2bda3fcd92d (patch) | |
| tree | cff33fd322e7a9ad1f5cb0a75adf77341d60ebea /MouseLocal.cs | |
| parent | 5be6cc2168c4efe5f72f5b9ef52ca48c26523bc2 (diff) | |
Updated LiteNetLib to 1.2.0
Diffstat (limited to 'MouseLocal.cs')
| -rw-r--r-- | MouseLocal.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MouseLocal.cs b/MouseLocal.cs index 6a6bc95..a1e38ac 100644 --- a/MouseLocal.cs +++ b/MouseLocal.cs @@ -23,7 +23,7 @@ class MouseLocal : Mouse bool clicked = Raylib.IsMouseButtonPressed(MouseButton.Left); if (clicked && Visible) Clicked?.Invoke(this); - if (Visible && OnekoOnline.Client!.Connected) { + if (Visible && OnekoOnline.Client?.Connected == true) { NetDataWriter writer = new(); writer.Put(new PacketInfo(PacketType.MouseState, OnekoOnline.Client.Id)); writer.Put(Position); |
