[PORT] Port for 25w15a.... Seriously mojang, JUST STOP....

This commit is contained in:
2025-04-08 20:19:03 +02:00
parent cf3b89ea7f
commit 7eb86b012e
8 changed files with 12 additions and 12 deletions

View File

@@ -179,7 +179,7 @@ public class CraterConfigScreen extends Screen {
@Override
public void render(@NotNull GuiGraphics matrices, int mouseX, int mouseY, float delta) {
overlayBackground(matrices.pose(), TOP, height - BOTTOM, 32);
/*overlayBackground(matrices.pose(), TOP, height - BOTTOM, 32);
renderScrollBar();
matrices.pose().pushPose();
@@ -198,7 +198,7 @@ public class CraterConfigScreen extends Screen {
option.render(minecraft, font, 40, y, width - 80, height1, matrices, mouseX, mouseY, delta);
renderConfigTooltip(matrices, font, mouseX, mouseY, 40, y, font.width(option.text), height1, option.text.getString(), option.getLangKeys().toArray(new String[0]));
y += height1;
}
}*/
}
private void renderScrollBar() {

View File

@@ -55,7 +55,7 @@ public class BridgedMinecraft {
}
public String getGameVersion() {
return SharedConstants.getCurrentVersion().getName();
return SharedConstants.getCurrentVersion().name();
}
public String getUserName() {

View File

@@ -38,7 +38,7 @@ public class BridgedMinecraftServer {
}
public String getName() {
return SharedConstants.getCurrentVersion().getName();
return SharedConstants.getCurrentVersion().name();
}
public boolean usesAuthentication() {

View File

@@ -25,7 +25,7 @@ public class ChatUtils {
@Getter
private static final GsonComponentSerializer adventureSerializer = GsonComponentSerializer.builder().options(
JSONOptions.byDataVersion().at(SharedConstants.getCurrentVersion().getDataVersion().getVersion())
JSONOptions.byDataVersion().at(SharedConstants.getCurrentVersion().dataVersion().version())
).build();
private static final MiniMessage miniMessage = MiniMessage.miniMessage();