File tree 2 files changed +19
-6
lines changed
2 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 3
3
using Celeste . Mod . TASHelper . Gameplay . AutoWatchEntity ;
4
4
using Celeste . Mod . TASHelper . Gameplay . Spinner ;
5
5
using Celeste . Mod . TASHelper . Module . Menu ;
6
+ using Celeste . Mod . TASHelper . Predictor ;
6
7
using Celeste . Mod . TASHelper . Utils ;
7
8
using Microsoft . Xna . Framework ;
8
9
using Microsoft . Xna . Framework . Input ;
@@ -275,7 +276,11 @@ public static SRT CreateSRT() {
275
276
276
277
Gameplay . AutoWatchEntity . CoreLogic . WhenWatchedRenderers = SRT_WhenWatchedRenderers . DeepCloneShared ( ) ;
277
278
278
- AutoWatchRenderer . WakeUpAllAutoWatchRenderer ( ) ;
279
+ AutoWatchRenderer . WakeUpAllAutoWatchRenderer ( ) ;
280
+
281
+ PredictorCore . delayedClearFutures = true ;
282
+ PredictorCore . HasCachedFutures = false ;
283
+ PredictorCore . delayedClearState = true ;
279
284
} ;
280
285
Action clear = ( ) => {
281
286
SRT_CachedNodes = null ;
Original file line number Diff line number Diff line change @@ -29,10 +29,16 @@ public static class TH_DeepClonerUtils {
29
29
30
30
public static PreCloneProcessor SRT_preCloneProcessor ;
31
31
32
- public static PostCloneProcessor SRT_postCloneProcessor ;
32
+ public static PostCloneProcessor SRT_postCloneProcessor ;
33
+
34
+ private static bool Initialized = false ;
35
+
36
+ private static void Config ( ) {
37
+ if ( Initialized ) {
38
+ return ;
39
+ }
40
+ Initialized = true ;
33
41
34
- [ Load ]
35
- private static void Config ( ) {
36
42
SRT_preCloneProcessor = DeepCloner . _preCloneProcessor ;
37
43
SRT_postCloneProcessor = DeepCloner . _postCloneProcessor ;
38
44
TH_preCloneProcessor =
@@ -232,12 +238,14 @@ private static void Clear() {
232
238
#pragma warning restore CS8625
233
239
}
234
240
235
- public static void PushProcessor ( ) {
241
+ public static void PushProcessor ( ) {
242
+ Config ( ) ;
236
243
DeepCloner . _preCloneProcessor = TH_preCloneProcessor ;
237
244
DeepCloner . _postCloneProcessor = TH_postCloneProcessor ;
238
245
}
239
246
240
- public static void PopProcessor ( ) {
247
+ public static void PopProcessor ( ) {
248
+ Config ( ) ;
241
249
DeepCloner . _preCloneProcessor = SRT_preCloneProcessor ;
242
250
DeepCloner . _postCloneProcessor = SRT_postCloneProcessor ;
243
251
}
You can’t perform that action at this time.
0 commit comments