@@ -22,12 +22,14 @@ import {
2222 type ToggleableScript ,
2323 draggablePlayerToPlayerJs ,
2424 parseJSON ,
25+ parseSuperJSON ,
2526} from " ../index" ;
2627import { mapStore } from " ../settings" ;
2728import {
2829 DebugRendering ,
2930 ExistingMatchBehavior ,
3031} from " ../../bindings/github.com/RLBot/go-interface/flat/models.js" ;
32+ import SuperJSON from " superjson" ;
3133
3234let {
3335 paths = $bindable ([]),
@@ -111,10 +113,10 @@ let loadingPlayers = $state(false);
111113
112114let players: DraggablePlayer [] = $state (BASE_PLAYERS .slice (1 ));
113115let bluePlayers: DraggablePlayer [] = $state (
114- parseJSON (localStorage .getItem (" BLUE_PLAYERS" )) || [BASE_PLAYERS [0 ]],
116+ parseSuperJSON (localStorage .getItem (" BLUE_PLAYERS" )) || [BASE_PLAYERS [0 ]],
115117);
116118let orangePlayers: DraggablePlayer [] = $state (
117- parseJSON (localStorage .getItem (" ORANGE_PLAYERS" )) || [],
119+ parseSuperJSON (localStorage .getItem (" ORANGE_PLAYERS" )) || [],
118120);
119121let showHuman = $derived (
120122 ! (
@@ -124,10 +126,10 @@ let showHuman = $derived(
124126);
125127
126128$effect (() => {
127- localStorage .setItem (" BLUE_PLAYERS" , JSON .stringify (bluePlayers ));
129+ localStorage .setItem (" BLUE_PLAYERS" , SuperJSON .stringify (bluePlayers ));
128130});
129131$effect (() => {
130- localStorage .setItem (" ORANGE_PLAYERS" , JSON .stringify (orangePlayers ));
132+ localStorage .setItem (" ORANGE_PLAYERS" , SuperJSON .stringify (orangePlayers ));
131133});
132134
133135let latestScriptUpdateTime = null ;
0 commit comments