Skip to content

Commit 53c23d8

Browse files
authored
1.21.6 Update (#5499)
1 parent 21145ef commit 53c23d8

77 files changed

Lines changed: 878 additions & 579 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

gradle.properties

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ org.gradle.jvmargs=-Xmx2G
22
org.gradle.configuration-cache=true
33

44
# Fabric (https://fabricmc.net/develop)
5-
minecraft_version=1.21.5
6-
yarn_mappings=1.21.5+build.1
7-
loader_version=0.16.12
8-
fapi_version=0.121.0+1.21.5
5+
minecraft_version=1.21.6
6+
yarn_mappings=1.21.6+build.1
7+
loader_version=0.16.14
8+
fapi_version=0.127.1+1.21.6
99

1010
# Mod Properties
1111
maven_group=meteordevelopment
@@ -14,19 +14,19 @@ archives_base_name=meteor-client
1414
# Dependency Versions
1515

1616
# Baritone (https://github.com/MeteorDevelopment/baritone)
17-
baritone_version=1.21.4
17+
baritone_version=1.21.5
1818

1919
# Sodium (https://github.com/CaffeineMC/sodium-fabric)
20-
sodium_version=mc1.21.5-0.6.12-fabric
20+
sodium_version=mc1.21.6-0.6.13-fabric
2121

2222
# Lithium (https://github.com/CaffeineMC/lithium-fabric)
23-
lithium_version=mc1.21.5-0.16.0-fabric
23+
lithium_version=mc1.21.6-0.17.0-fabric
2424

2525
# Iris (https://github.com/IrisShaders/Iris)
26-
iris_version=1.8.11+1.21.5-fabric
26+
iris_version=1.9.0+1.21.6-fabric
2727

2828
# ModMenu (https://github.com/TerraformersMC/ModMenu)
29-
modmenu_version=14.0.0-rc.2
29+
modmenu_version=15.0.0-beta.3
3030

3131
# Orbit (https://github.com/MeteorDevelopment/orbit)
3232
orbit_version=0.2.4
@@ -44,7 +44,7 @@ reflections_version=0.10.2
4444
netty_version=4.1.118.Final
4545

4646
# ViaFabricPlus (https://github.com/ViaVersion/ViaFabricPlus)
47-
viafabricplus_version=4.1.0
47+
viafabricplus_version=4.1.5
4848

4949
# WaybackAuthLib (https://github.com/FlorianMichael/WaybackAuthLib)
5050
waybackauthlib_version=1.0.1

gradle/wrapper/gradle-wrapper.jar

181 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.2-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/java/meteordevelopment/meteorclient/commands/commands/ServerCommand.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -139,19 +139,12 @@ private void basicInfo() {
139139
);
140140

141141
info("Port: %d", ServerAddress.parse(server.address).getPort());
142-
143142
info("Type: %s", mc.getNetworkHandler().getBrand() != null ? mc.getNetworkHandler().getBrand() : "unknown");
144-
145143
info("Motd: %s", server.label != null ? server.label.getString() : "unknown");
146-
147144
info("Version: %s", server.version.getString());
148-
149145
info("Protocol version: %d", server.protocolVersion);
150-
151146
info("Difficulty: %s (Local: %.2f)", mc.world.getDifficulty().getTranslatableName().getString(), mc.world.getLocalDifficulty(mc.player.getBlockPos()).getLocalDifficulty());
152-
153147
info("Day: %d", mc.world.getTimeOfDay() / 24000L);
154-
155148
info("Permission level: %s", formatPerms());
156149
}
157150

@@ -212,7 +205,10 @@ private void onReadPacket(PacketEvent.Receive event) {
212205

213206
// This gets the root node of the command tree. From there, all of its children have to be of type
214207
// LiteralCommandNode, so we don't need to worry about checking or casting and can just grab the name
215-
packet.getCommandTree(CommandRegistryAccess.of(handler.getCombinedDynamicRegistries(), handler.getEnabledFeatures())).getChildren().forEach(node -> {
208+
packet.getCommandTree(
209+
CommandRegistryAccess.of(handler.getCombinedDynamicRegistries(), handler.getEnabledFeatures()),
210+
ClientPlayNetworkHandlerAccessor.getCommandNodeFactory()
211+
).getChildren().forEach(node -> {
216212
String[] split = node.getName().split(":");
217213
if (split.length > 1) {
218214
if (!commandTreePlugins.contains(split[0])) commandTreePlugins.add(split[0]);

src/main/java/meteordevelopment/meteorclient/gui/WidgetScreen.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,15 @@ public boolean charTyped(char chr, int keyCode) {
234234
}
235235

236236
@Override
237-
public void render(DrawContext context, int mouseX, int mouseY, float delta) {
238-
if (!Utils.canUpdate()) renderBackground(context, mouseX, mouseY, delta);
237+
public void renderBackground(DrawContext context, int mouseX, int mouseY, float deltaTicks) {
238+
if (this.client.world == null) {
239+
this.renderPanoramaBackground(context, deltaTicks);
240+
}
241+
}
239242

240-
double s = mc.getWindow().getScaleFactor();
243+
@Override
244+
public void render(DrawContext context, int mouseX, int mouseY, float delta) {
245+
int s = mc.getWindow().getScaleFactor();
241246
mouseX *= s;
242247
mouseY *= s;
243248

@@ -247,7 +252,6 @@ public void render(DrawContext context, int mouseX, int mouseY, float delta) {
247252
GuiKeyEvents.canUseKeys = true;
248253

249254
// Apply projection without scaling
250-
context.draw();
251255
Utils.unscaledProjection();
252256

253257
onRenderBefore(context, delta);
@@ -268,7 +272,6 @@ public void render(DrawContext context, int mouseX, int mouseY, float delta) {
268272
if (tooltip) DEBUG_RENDERER.render(RENDERER.tooltipWidget);
269273
}
270274

271-
context.draw();
272275
Utils.scaledProjection();
273276

274277
runAfterRenderTasks();

src/main/java/meteordevelopment/meteorclient/gui/renderer/GuiRenderer.java

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import java.util.List;
2727
import java.util.Stack;
2828

29+
import static meteordevelopment.meteorclient.MeteorClient.mc;
2930
import static meteordevelopment.meteorclient.utils.Utils.getWindowHeight;
3031
import static meteordevelopment.meteorclient.utils.Utils.getWindowWidth;
3132

@@ -82,6 +83,11 @@ public static void init() {
8283

8384
public void begin(DrawContext drawContext) {
8485
this.drawContext = drawContext;
86+
this.drawContext.createNewRootLayer();
87+
88+
var matrices = drawContext.getMatrices();
89+
matrices.pushMatrix();
90+
matrices.scale(1.0f / mc.getWindow().getScaleFactor());
8591

8692
scissorStart(0, 0, getWindowWidth(), getWindowHeight());
8793
}
@@ -91,6 +97,9 @@ public void end() {
9197

9298
for (Runnable task : postTasks) task.run();
9399
postTasks.clear();
100+
101+
drawContext.getMatrices().popMatrix();
102+
drawContext.createNewRootLayer();
94103
}
95104

96105
public void beginRender() {
@@ -109,7 +118,7 @@ public void endRender(Scissor scissor) {
109118
rTex.end();
110119

111120
r.render();
112-
rTex.render(pass -> pass.bindSampler("u_Texture", TEXTURE.getGlTexture()));
121+
rTex.render("u_Texture", TEXTURE.getGlTextureView());
113122

114123
// Normal text
115124
theme.textRenderer().begin(theme.scale(1));
@@ -144,6 +153,8 @@ public void scissorStart(double x, double y, double width, double height) {
144153
}
145154

146155
scissorStack.push(scissorPool.get().set(x, y, width, height));
156+
drawContext.enableScissor((int) x, (int) y, (int) (x + width), (int) (y + height));
157+
147158
beginRender();
148159
}
149160

@@ -156,6 +167,7 @@ public void scissorEnd() {
156167
for (Runnable task : scissor.postTasks) task.run();
157168
scissor.pop();
158169

170+
drawContext.disableScissor();
159171
if (!scissorStack.isEmpty()) beginRender();
160172

161173
scissorPool.free(scissor);
@@ -236,7 +248,7 @@ public void texture(double x, double y, double width, double height, double rota
236248
rTex.texQuad(x, y, width, height, rotation, 0, 0, 1, 1, WHITE);
237249
rTex.end();
238250

239-
rTex.render(texture.getGlTexture());
251+
rTex.render(texture.getGlTextureView());
240252
});
241253
}
242254

@@ -245,7 +257,7 @@ public void post(Runnable task) {
245257
}
246258

247259
public void item(ItemStack itemStack, int x, int y, float scale, boolean overlay) {
248-
RenderUtils.drawItem(drawContext, itemStack, x, y, scale, overlay);
260+
RenderUtils.drawItem(drawContext, itemStack, x, y, scale, overlay, null, false);
249261
}
250262

251263
public void absolutePost(Runnable task) {

src/main/java/meteordevelopment/meteorclient/mixin/BackgroundRendererMixin.java

Lines changed: 0 additions & 49 deletions
This file was deleted.

src/main/java/meteordevelopment/meteorclient/mixin/BookEditScreenMixin.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@
3232
public abstract class BookEditScreenMixin extends Screen {
3333
@Shadow @Final private List<String> pages;
3434
@Shadow private int currentPage;
35-
@Shadow private boolean dirty;
35+
36+
@Shadow
37+
protected abstract void updatePage();
3638

3739
public BookEditScreenMixin(Text title) {
3840
super(title);
3941
}
4042

41-
@Shadow protected abstract void updateButtons();
42-
4343
@Inject(method = "init", at = @At("TAIL"))
4444
private void onInit(CallbackInfo info) {
4545
addDrawableChild(
@@ -99,8 +99,7 @@ private void onInit(CallbackInfo info) {
9999

100100
currentPage = tag.getInt("currentPage", 0);
101101

102-
dirty = true;
103-
updateButtons();
102+
updatePage();
104103
} catch (IOException e) {
105104
e.printStackTrace();
106105
}

0 commit comments

Comments
 (0)