Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dependencies to Support Minecraft 1.21.3 #124

Merged
merged 4 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
id 'maven-publish'
id 'com.modrinth.minotaur' version '2.8.7'
id 'com.matthewprenger.cursegradle' version '1.4.0'
id 'fabric-loom' version '1.6-SNAPSHOT'
id 'fabric-loom' version '1.8-SNAPSHOT'
}

allprojects {
Expand Down
22 changes: 11 additions & 11 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@ mod_version = 8.0.0+1.21
## {x-release-please-end}

# Fabric
minecraft_version = 1.21
loader_version = 0.15.11
yarn_mappings = 1.21+build.1
fabric_version = 0.100.1+1.21
minecraft_version = 1.21.3
loader_version = 0.16.7
yarn_mappings = 1.21.3+build.2
fabric_version = 0.107.0+1.21.3

# Dependencies
cloth_config_version = 15.0.127
mod_menu_version = 11.0.0-beta.1
cloth_config_version = 16.0.141
mod_menu_version = 12.0.0-beta.1

checkstyle_version = 10.15.0
jetbrains_annotations_version = 24.1.0
junit_jupiter_version = 5.10.2
checkstyle_version = 10.20.0
jetbrains_annotations_version = 26.0.1
junit_jupiter_version = 5.11.3

# CurseForge
cf_project_id = 356643
cf_game_versions = Fabric, Java 21, 1.21
cf_game_versions = Fabric, Java 21, 1.21.3
cf_relations_required = fabric-api
cf_relations_optional = modmenu
cf_relations_embedded = cloth-config
Expand All @@ -31,7 +31,7 @@ cf_relations_incompatible =

# Modrinth
mr_project_id = yjgIrBjZ
mr_game_versions = 1.21
mr_game_versions = 1.21.3
mr_relations_required = P7dR8mSH
mr_relations_optional = mOgUt4GM
mr_relations_incompatible =
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import net.minecraft.client.gui.tooltip.Tooltip;
import net.minecraft.client.gui.widget.ButtonWidget;
import net.minecraft.client.gui.widget.TexturedButtonWidget;
import net.minecraft.client.render.RenderLayer;
import net.minecraft.text.Text;
import net.minecraft.util.Identifier;

Expand Down Expand Up @@ -253,7 +254,19 @@ public void renderWidget(DrawContext context, int mouseX, int mouseY, float delt
case OFFLINE -> u = 8;
default -> u = 16;
}
context.drawTexture(SESSION_STATUS_TEXTURE, getX() + width - 6, getY() - 1, u, 0, 8, 8, 24, 8);

context.drawTexture(
gui -> RenderLayer.getGuiTexturedOverlay(SESSION_STATUS_TEXTURE),
SESSION_STATUS_TEXTURE,
getX() + width - 6,
getY() - 1,
u,
0,
8,
8,
24,
8
);
}

/**
Expand Down
Loading