File tree 1 file changed +8
-2
lines changed
src/main/java/com/plusls/MasaGadget/impl/gui
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 15
15
//#endif
16
16
17
17
//#if MC < 12000 && MC > 11404
18
- import com .mojang .blaze3d .vertex .Tesselator ;
19
18
import net .minecraft .client .renderer .MultiBufferSource ;
19
+ import top .hendrixshen .magiclib .util .minecraft .render .RenderUtil ;
20
20
//#endif
21
21
22
22
@ Getter
@@ -69,6 +69,9 @@ public void render(
69
69
}
70
70
71
71
renderContext .scale (scale , scale , scale );
72
+ //#if MC > 11404
73
+ MultiBufferSource .BufferSource immediate = RenderUtil .getBufferSource ();
74
+ //#endif
72
75
FontCompat .of (Minecraft .getInstance ().font )
73
76
.drawInBatch (
74
77
text ,
@@ -85,13 +88,16 @@ public void render(
85
88
//#if MC > 11904
86
89
//$$ renderContext.getGuiComponent().bufferSource(),
87
90
//#else
88
- MultiBufferSource . immediate ( Tesselator . getInstance (). getBuilder ()) ,
91
+ immediate ,
89
92
//#endif
90
93
//#endif
91
94
FontCompat .DisplayMode .NORMAL ,
92
95
0 ,
93
96
0xf000f0
94
97
);
98
+ //#if MC > 11404
99
+ immediate .endBatch ();
100
+ //#endif
95
101
}
96
102
97
103
renderContext .popMatrix ();
You can’t perform that action at this time.
0 commit comments