File tree Expand file tree Collapse file tree
src/main/java/net/wurstclient Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030
3131import com .mojang .blaze3d .platform .NativeImage ;
3232
33- import net .minecraft .client .gui .GuiGraphicsExtractor ;
33+ import net .minecraft .client .gui .GuiGraphics ;
3434import net .minecraft .client .renderer .RenderPipelines ;
3535import net .minecraft .client .renderer .texture .DynamicTexture ;
3636import net .minecraft .resources .Identifier ;
@@ -126,7 +126,7 @@ public void doPrimaryAction()
126126 }
127127
128128 @ Override
129- public void onRenderGUI (GuiGraphicsExtractor context , float partialTicks )
129+ public void onRenderGUI (GuiGraphics context , float partialTicks )
130130 {
131131 if (!enabled || gifLoadFailed || gifFrames .isEmpty ())
132132 return ;
Original file line number Diff line number Diff line change @@ -396,8 +396,8 @@ private void updateAnchorChunk()
396396 // Sticky mode keeps a stable scan center while you move within the
397397 // selected area, but should re-anchor once you leave that area.
398398 int radius = getChunkRange (selectedArea );
399- if (Math .abs (playerChunk .x () - anchorChunk .x () ) > radius
400- || Math .abs (playerChunk .z () - anchorChunk .z () ) > radius )
399+ if (Math .abs (playerChunk .x - anchorChunk .x ) > radius
400+ || Math .abs (playerChunk .z - anchorChunk .z ) > radius )
401401 {
402402 anchorChunk = playerChunk ;
403403 scanTimer = 0 ;
Original file line number Diff line number Diff line change 1616import org .spongepowered .asm .mixin .injection .Inject ;
1717import org .spongepowered .asm .mixin .injection .callback .CallbackInfo ;
1818
19- import net .minecraft .client .gui .GuiGraphicsExtractor ;
19+ import net .minecraft .client .gui .GuiGraphics ;
2020import net .minecraft .client .gui .screens .LoadingOverlay ;
2121import net .minecraft .util .ARGB ;
2222import net .wurstclient .WurstClient ;
@@ -49,9 +49,9 @@ private static void onClassInit(CallbackInfo ci)
4949 wurst$applyConfiguredLogoBackgroundColor ();
5050 }
5151
52- @ Inject (method = "extractRenderState" , at = @ At ("HEAD" ), require = 0 )
53- private void onExtractRenderState (GuiGraphicsExtractor graphics , int mouseX ,
54- int mouseY , float partialTicks , CallbackInfo ci )
52+ @ Inject (method = "extractRenderState" , at = @ At ("HEAD" ), require = 0 )
53+ private void onExtractRenderState (GuiGraphics graphics , int mouseX ,
54+ int mouseY , float partialTicks , CallbackInfo ci )
5555 {
5656 wurst$applyConfiguredLogoBackgroundColor ();
5757 }
You can’t perform that action at this time.
0 commit comments