Skip to content

Commit

Permalink
Backport to 1.17.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaider10 committed Mar 12, 2022
1 parent 9c53e82 commit 31434e4
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ plugins {
id 'fabric-loom' version '0.11-SNAPSHOT'
}

sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_16
targetCompatibility = JavaVersion.VERSION_16

archivesBaseName = project.archives_base_name
version = "${project.mod_version}-${project.minecraft_version}"
Expand All @@ -29,7 +29,7 @@ processResources {
}

tasks.withType(JavaCompile).configureEach {
it.options.release = 17
it.options.release = 16
}

java {
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
org.gradle.jvmargs=-Xmx1G

# Fabric Properties
minecraft_version=1.18.2
yarn_mappings=1.18.2+build.2
minecraft_version=1.17.1
yarn_mappings=1.17.1+build.65
loader_version=0.13.3

# Mod Properties
mod_version = 1.0.0
archives_base_name = PlayerHealthIndicators

# Dependencies
fabric_version=0.47.10+1.18.2
fabric_version=0.46.1+1.17
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void renderHealth(AbstractClientPlayerEntity abstractClientPlayerEntity,
RenderSystem.setShaderTexture(0, DrawableHelper.GUI_ICONS_TEXTURE);
RenderSystem.enableDepthTest();

Matrix4f model = matrixStack.peek().getPositionMatrix();
Matrix4f model = matrixStack.peek().getModel();

int healthRed = MathHelper.ceil(abstractClientPlayerEntity.getHealth());
int maxHealth = MathHelper.ceil(abstractClientPlayerEntity.getMaxHealth());
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"depends": {
"fabricloader": ">=0.11.3",
"fabric": "*",
"minecraft": "1.18.x",
"java": ">=17"
"minecraft": "1.17.x",
"java": ">=16"
}
}
2 changes: 1 addition & 1 deletion src/main/resources/healthindicators.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"required": true,
"minVersion": "0.8",
"package": "me.andrew.healthindicators.mixin",
"compatibilityLevel": "JAVA_17",
"compatibilityLevel": "JAVA_16",
"client": [
"PlayerEntityRendererMixin"
],
Expand Down

0 comments on commit 31434e4

Please sign in to comment.