From 96369f565979abbc8fcfe7ef98f2e65a75514fb7 Mon Sep 17 00:00:00 2001 From: NotAKidoS <37721153+NotAKidoS@users.noreply.github.com> Date: Mon, 2 Sep 2024 01:21:10 -0500 Subject: [PATCH] Stickers: oops... --- Stickers/Stickers/Networking/ModNetwork.Inbound.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Stickers/Stickers/Networking/ModNetwork.Inbound.cs b/Stickers/Stickers/Networking/ModNetwork.Inbound.cs index b59d5db..d725d55 100644 --- a/Stickers/Stickers/Networking/ModNetwork.Inbound.cs +++ b/Stickers/Stickers/Networking/ModNetwork.Inbound.cs @@ -156,7 +156,7 @@ public static partial class ModNetwork return; } - _textureChunkBuffers[sender] = new byte[Mathf.Clamp(chunkCount * ChunkSize, 0, MaxTextureSize)]; + _textureChunkBuffers[sender] = new byte[Mathf.Clamp(chunkCount * ChunkSize, 0, MaxChunkCount)]; _receivedChunkCounts[sender] = 0; _expectedChunkCounts[sender] = chunkCount; _textureMetadata[sender] = (stickerSlot, textureHash, width, height);