File tree Expand file tree Collapse file tree
java/io/github/skydynamic/quickbakcupmulti/mixin/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ package io .github .skydynamic .quickbakcupmulti .mixin .client ;
2+
3+ import io .github .skydynamic .quickbakcupmulti .QuickbakcupmultiReforged ;
4+ import net .minecraft .world .level .storage .LevelStorageSource ;
5+ import org .spongepowered .asm .mixin .Dynamic ;
6+ import org .spongepowered .asm .mixin .Mixin ;
7+ import org .spongepowered .asm .mixin .Pseudo ;
8+ import org .spongepowered .asm .mixin .injection .At ;
9+ import org .spongepowered .asm .mixin .injection .Inject ;
10+ import org .spongepowered .asm .mixin .injection .callback .CallbackInfo ;
11+
12+ @ Pseudo
13+ @ Mixin (
14+ targets = "xaero.common.core.XaeroMinimapCore" ,
15+ remap = false
16+ )
17+ public class MixinXaeroMinimapCore {
18+ @ Dynamic
19+ @ Inject (
20+ method = "onDeleteWorld" ,
21+ at =@ At ("HEAD" ),
22+ cancellable = true
23+ )
24+ private static void onDeleteWorldInject (
25+ LevelStorageSource .LevelStorageAccess levelStorageAccess ,
26+ CallbackInfo ci
27+ ) {
28+ if (QuickbakcupmultiReforged .getModContainer ().isRestoringBackup ()) {
29+ ci .cancel ();
30+ }
31+ }
32+ }
Original file line number Diff line number Diff line change 1515 "defaultRequire" : 1
1616 },
1717 "mixins" : [
18+ " client.MixinXaeroMinimapCore"
1819 ]
1920}
You can’t perform that action at this time.
0 commit comments