Skip to content

Commit 953d388

Browse files
committed
1.21.7
1 parent 14f264e commit 953d388

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

src/main/java/win/baruna/blockmeter/gui/OptionsGui.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import net.minecraft.client.font.TextRenderer;
77
//import net.minecraft.client.gl.ShaderProgramKey;
88
//import net.minecraft.client.gl.ShaderProgramKeys;
9+
import net.minecraft.client.gl.RenderPipelines;
910
import net.minecraft.client.gui.DrawContext;
1011
import net.minecraft.client.gui.screen.ButtonTextures;
1112
import net.minecraft.client.gui.screen.Screen;
@@ -89,7 +90,7 @@ protected void init() {
8990

9091
@Override
9192
public void render(DrawContext context, int mouseX, int mouseY, float delta) {
92-
super.renderBackground(context, mouseX, mouseY, delta);
93+
// super.renderBackground(context, mouseX, mouseY, delta);
9394
super.render(context, mouseX, mouseY, delta);
9495
}
9596

@@ -142,7 +143,7 @@ public void onPress() {
142143
public void renderWidget(DrawContext context, final int int_1, final int int_2, final float float_1) {
143144

144145
context.drawGuiTexture(
145-
RenderLayer::getGuiTextured,
146+
RenderPipelines.GUI_TEXTURED,
146147
TEXTURES.get(this.active, this.isSelected()),
147148
x, y, width, height, color.getColor()
148149
);

src/main/java/win/baruna/blockmeter/measurebox/ClientMeasureBox.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
import java.util.List;
2828
import java.util.OptionalDouble;
2929

30-
import static net.minecraft.client.gl.RenderPipelines.MATRICES_COLOR_SNIPPET;
30+
import static net.minecraft.client.gl.RenderPipelines.POSITION_COLOR_SNIPPET;
3131

3232
public class ClientMeasureBox extends MeasureBox {
3333
private static final RenderLayer.MultiPhase DEBUG_LINE_STRIP = RenderLayer.of(
3434
"debug_line_strip_no_depth",
3535
1536,
3636
RenderPipelines.register(
37-
RenderPipeline.builder(MATRICES_COLOR_SNIPPET)
37+
RenderPipeline.builder(POSITION_COLOR_SNIPPET)
3838
.withLocation("pipeline/debug_line_strip")
3939
.withVertexShader("core/position_color")
4040
.withFragmentShader("core/position_color")
@@ -48,7 +48,7 @@ public class ClientMeasureBox extends MeasureBox {
4848
);
4949
private static final RenderLayer.MultiPhase DEBUG_QUADS = RenderLayer.of(
5050
"debug_quads_no_depth", 1536, false, true, RenderPipelines.register(
51-
RenderPipeline.builder(RenderPipelines.POSITION_COLOR_SNIPPET).withLocation("pipeline/debug_quads").withCull(false).withDepthTestFunction(DepthTestFunction.NO_DEPTH_TEST).build()
51+
RenderPipeline.builder(POSITION_COLOR_SNIPPET).withLocation("pipeline/debug_quads").withCull(false).withDepthTestFunction(DepthTestFunction.NO_DEPTH_TEST).build()
5252
), RenderLayer.MultiPhaseParameters.builder().build(false)
5353
);
5454
@NotNull

src/main/resources/fabric.mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"depends": {
2020
"fabricloader": "*",
2121
"fabric": "*",
22-
"minecraft": ">=1.21.5"
22+
"minecraft": ">=1.21.6"
2323
},
2424
"recommends": {
2525
"modmenu": "*"

version.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
modVersion = 1.16
2-
minecraftVersion = 1.21.5
1+
modVersion = 1.17
2+
minecraftVersion = 1.21.7

0 commit comments

Comments
 (0)