Skip to content

Commit 31434e4

Browse files
committed
Backport to 1.17.1
1 parent 9c53e82 commit 31434e4

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ plugins {
22
id 'fabric-loom' version '0.11-SNAPSHOT'
33
}
44

5-
sourceCompatibility = JavaVersion.VERSION_17
6-
targetCompatibility = JavaVersion.VERSION_17
5+
sourceCompatibility = JavaVersion.VERSION_16
6+
targetCompatibility = JavaVersion.VERSION_16
77

88
archivesBaseName = project.archives_base_name
99
version = "${project.mod_version}-${project.minecraft_version}"
@@ -29,7 +29,7 @@ processResources {
2929
}
3030

3131
tasks.withType(JavaCompile).configureEach {
32-
it.options.release = 17
32+
it.options.release = 16
3333
}
3434

3535
java {

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
org.gradle.jvmargs=-Xmx1G
33

44
# Fabric Properties
5-
minecraft_version=1.18.2
6-
yarn_mappings=1.18.2+build.2
5+
minecraft_version=1.17.1
6+
yarn_mappings=1.17.1+build.65
77
loader_version=0.13.3
88

99
# Mod Properties
1010
mod_version = 1.0.0
1111
archives_base_name = PlayerHealthIndicators
1212

1313
# Dependencies
14-
fabric_version=0.47.10+1.18.2
14+
fabric_version=0.46.1+1.17

src/main/java/me/andrew/healthindicators/mixin/PlayerEntityRendererMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void renderHealth(AbstractClientPlayerEntity abstractClientPlayerEntity,
5555
RenderSystem.setShaderTexture(0, DrawableHelper.GUI_ICONS_TEXTURE);
5656
RenderSystem.enableDepthTest();
5757

58-
Matrix4f model = matrixStack.peek().getPositionMatrix();
58+
Matrix4f model = matrixStack.peek().getModel();
5959

6060
int healthRed = MathHelper.ceil(abstractClientPlayerEntity.getHealth());
6161
int maxHealth = MathHelper.ceil(abstractClientPlayerEntity.getMaxHealth());

src/main/resources/fabric.mod.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"depends": {
2525
"fabricloader": ">=0.11.3",
2626
"fabric": "*",
27-
"minecraft": "1.18.x",
28-
"java": ">=17"
27+
"minecraft": "1.17.x",
28+
"java": ">=16"
2929
}
3030
}

src/main/resources/healthindicators.mixins.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"required": true,
33
"minVersion": "0.8",
44
"package": "me.andrew.healthindicators.mixin",
5-
"compatibilityLevel": "JAVA_17",
5+
"compatibilityLevel": "JAVA_16",
66
"client": [
77
"PlayerEntityRendererMixin"
88
],

0 commit comments

Comments
 (0)