Skip to content

Commit

Permalink
fixed chalk crash *again* *again*
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMeepso committed Nov 28, 2024
1 parent 177f83a commit 41185e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Cove/Server/Chalk/ChalkCanvas.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ public void drawChalk(Vector2 position, int color)

public Dictionary<int, object> getChalkPacket()
{

Dictionary<int, object> packet = new Dictionary<int, object>();
ulong i = 0;
foreach (KeyValuePair<Vector2, int> entry in chalkImage.ToDictionary(pair => pair.Key, pair => pair.Value))
foreach (KeyValuePair<Vector2, int> entry in chalkImage.ToList())
{
Dictionary<int, object> arr = new();
arr[0] = entry.Key;
Expand Down
1 change: 0 additions & 1 deletion Cove/Server/Server.cs
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,6 @@ void RunNetwork()
{
try
{
// OnNetworkPacket(packet.Value);
for (int i = 0; i < 6; i++)
{
uint packetSize = 0;
Expand Down

0 comments on commit 41185e0

Please sign in to comment.