Skip to content
This repository has been archived by the owner on Dec 17, 2023. It is now read-only.

Commit

Permalink
Update to 1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
IzzelAliz committed Jun 8, 2023
1 parent d76cd79 commit aaeeec6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '[6.0,6.2]', changing: true
classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT'
}
}
Expand All @@ -14,13 +14,13 @@ apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'org.spongepowered.mixin'

group = 'io.izzel.lightfall'
version = '1.1.2'
version = '1.2.0'
archivesBaseName = 'lightfallclient'

java.toolchain.languageVersion = JavaLanguageVersion.of(17)

minecraft {
mappings channel: 'official', version: "1.19.4"
mappings channel: 'official', version: "1.20"
runs {
client {
workingDirectory project.file('run')
Expand All @@ -45,7 +45,7 @@ repositories {
}

dependencies {
minecraft 'net.minecraftforge:forge:1.19.4-45.0.22'
minecraft 'net.minecraftforge:forge:1.20-46.0.1'
annotationProcessor 'org.spongepowered:mixin:0.8.5:processor'
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.mojang.blaze3d.vertex.PoseStack;
import net.minecraft.client.GameNarrator;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiGraphics;
import net.minecraft.client.gui.components.Button;
import net.minecraft.client.gui.screens.Screen;
import net.minecraft.client.gui.screens.TitleScreen;
Expand Down Expand Up @@ -51,11 +52,11 @@ public void setComponent(Component component) {
this.component = component;
}

public void render(@NotNull PoseStack poseStack, int p_96531_, int p_96532_, float p_96533_) {
this.renderDirtBackground(poseStack);
drawCenteredString(poseStack, this.font, component != null ? component : Component.translatable("connect.connecting"),
public void render(@NotNull GuiGraphics gui, int p_96531_, int p_96532_, float p_96533_) {
this.renderDirtBackground(gui);
gui.drawCenteredString(this.font, component != null ? component : Component.translatable("connect.connecting"),
this.width / 2, this.height / 2 - 50, 16777215);
super.render(poseStack, p_96531_, p_96532_, p_96533_);
super.render(gui, p_96531_, p_96532_, p_96533_);
}

@Override
Expand Down

0 comments on commit aaeeec6

Please sign in to comment.