@colyseus/schema 4.0.8 → 4.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colyseus/schema",
3
- "version": "4.0.8",
3
+ "version": "4.0.9",
4
4
  "description": "Binary state serializer with delta encoding for games",
5
5
  "type": "module",
6
6
  "bin": {
@@ -192,7 +192,7 @@ function string(bytes: BufferLike, value: string, it: Iterator) {
192
192
  // str 8
193
193
  else if (length < 0x100) {
194
194
  bytes[it.offset++] = 0xd9;
195
- bytes[it.offset++] = length % 255;
195
+ bytes[it.offset++] = length;
196
196
  size = 2;
197
197
  }
198
198
  // str 16