From 40ff3cf5308d76c86ce5b4572e91fc45acff4620 Mon Sep 17 00:00:00 2001 From: GarboMuffin Date: Sat, 1 May 2021 22:20:23 -0500 Subject: [PATCH] Skip id "of" --- src/serialization/tw-optimize-sb3.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/serialization/tw-optimize-sb3.js b/src/serialization/tw-optimize-sb3.js index 09d579fc..56d3a548 100644 --- a/src/serialization/tw-optimize-sb3.js +++ b/src/serialization/tw-optimize-sb3.js @@ -16,6 +16,10 @@ const SOUP = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!#%()*+,-./:;=?@[]^_`{|}~'; const generateId = i => { + // Certain IDs already have other meanings, so we will skip these + if (i > 1309) i++; // of + // There are some other ones that have meaning (Object.keys(vm.runtime.monitorBlocks._blocks)), + // but these would take an unreasonably large amount of items to hit, so we don't bother listing them here. let str = ''; while (i >= 0) { str = SOUP[i % SOUP.length] + str;