File tree 3 files changed +15
-8
lines changed
minecraft/src/main/java/org/polyfrost/oneconfig
3 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ copycat = "0.1.3"
20
20
copycat-image-awt = " 0.1.1"
21
21
22
22
# Per version
23
- textile = " 0.8 .0"
23
+ textile = " 0.9 .0"
24
24
omnicore = " 0.21.0"
25
25
lwjgl = " 3.3.3" # All downloaded by the isolated-lwjgl3-loader
26
26
Original file line number Diff line number Diff line change @@ -101,6 +101,10 @@ private boolean reloadBlur(Object gui) {
101
101
// a one of ours, we should load our own blur!
102
102
if (gui instanceof BlurScreen && ((BlurScreen ) gui ).hasBackgroundBlur ()) {
103
103
if (!isShaderActive ()) {
104
+ //#if MC >= 1.21.4
105
+ //$$ if (true) return false;
106
+ //#endif
107
+
104
108
//#if FABRIC
105
109
//$$ ((org.polyfrost.oneconfig.internal.mixin.fabric.Mixin_LoadShaderInvoker_Fabric) MinecraftClient.getInstance().gameRenderer).invokeLoadShader(this.blurShader);
106
110
//#else
@@ -174,6 +178,9 @@ public boolean isShaderActive() {
174
178
}
175
179
176
180
private ShaderGroup getShaderGroup () {
181
+ //#if MC >= 1.21.4
182
+ //$$ if (true) return null;
183
+ //#endif
177
184
return Minecraft .getMinecraft ()
178
185
//#if MC >= 1.21.4
179
186
//$$ .getShaderLoader().loadPostEffect(this.blurShader, DefaultFramebufferSet.MAIN_ONLY);
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