Commit dad6825 1 parent 891e0b1 commit dad6825 Copy full SHA for dad6825
File tree 1 file changed +7
-7
lines changed
minecraft/src/main/java/org/polyfrost/oneconfig/internal
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -139,22 +139,22 @@ private static void registerCommands() {
139
139
OneConfigUI .INSTANCE .open ();
140
140
return 1 ;
141
141
});
142
- b .then (literal ("updateCheck" ).executes (cmd -> {
143
- Multithreading .submit (() -> OmniChat . showChatMessage (MavenUpdateChecker .oneconfig ().hasUpdate () ? "Update available!" : "No updates available" ));
142
+ b .then (literal ("updateCheck" ).executes (ctx -> {
143
+ Multithreading .submit (() -> ctx . getSource (). showMessage (MavenUpdateChecker .oneconfig ().hasUpdate () ? "Update available!" : "No updates available" ));
144
144
return 1 ;
145
145
}));
146
- b .then (literal ("locraw" ).executes (cmd -> {
147
- cmd .getSource ().showMessage (HypixelUtils .getLocation ().toString ());
146
+ b .then (literal ("locraw" ).executes (ctx -> {
147
+ ctx .getSource ().showMessage (HypixelUtils .getLocation ().toString ());
148
148
return 1 ;
149
149
}));
150
- b .then (literal ("hud" ).executes (cmd -> {
150
+ b .then (literal ("hud" ).executes (ctx -> {
151
151
Platform .screen ().display (HudManager .INSTANCE .getWithEditor ());
152
152
return 1 ;
153
153
}));
154
- b .then (literal ("delete" ).executes (cmd -> {
154
+ b .then (literal ("delete" ).executes (ctx -> {
155
155
OneConfigUI .INSTANCE .invalidateCache ();
156
156
ConfigVisualizer .INSTANCE .clearCache ();
157
- cmd .getSource ().showMessage ("Deleted OneConfig UI. Please make a report if you were having issues!" );
157
+ ctx .getSource ().showMessage ("Deleted OneConfig UI. Please make a report if you were having issues!" );
158
158
return 1 ;
159
159
}));
160
160
You can’t perform that action at this time.
0 commit comments