Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KrLite committed Mar 6, 2024
1 parent bf9ecef commit ace1b82
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
14 changes: 4 additions & 10 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ dependencies {

modApi(libs.cloth.config)
modApi(libs.modmenu)
modImplementation(libs.equator)?.let {
include(it)
}
modImplementation(libs.equator)

modImplementation(libs.raised)
modImplementation(libs.appleskin)
modImplementation(libs.immediatelyfast)

include(libs.equator)
}

java {
Expand All @@ -44,10 +44,6 @@ java {
withSourcesJar()
}

loom {
accessWidenerPath = file("src/main/resources/verticality.accesswidener")
}

tasks {
processResources {
inputs.property("version", libs.versions.mod.get())
Expand All @@ -58,9 +54,7 @@ tasks {
}

jar {
from("LICENSE") {
rename { "${it}_${base.archivesName}" }
}
from("LICENSE")
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[versions]
maven-group = "net.krlite"
archives-name = "verticality"
mod = "4.0.1"
mod = "4.0.2"

minecraft = "1.20.2"
yarn = "1.20.2+build.4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public abstract class InGameHudMixin {
@Shadow public abstract TextRenderer getTextRenderer();
@Shadow protected abstract int getHeartCount(LivingEntity entity);
@Shadow protected abstract LivingEntity getRiddenEntity();
@Shadow protected abstract void drawHeart(DrawContext context, InGameHud.HeartType type, int x, int y, boolean hardcore, boolean blinking, boolean half);
//@Shadow protected abstract void drawHeart(DrawContext context, InGameHud.HeartType type, int x, int y, boolean hardcore, boolean blinking, boolean half);

@Unique int stackedInfo = 0;

Expand Down Expand Up @@ -155,9 +155,9 @@ private void renderAlternativeLayoutInfo(DrawContext context) {
boolean blinking = heartJumpEndTick > (long) ticks && (this.heartJumpEndTick - (long) this.ticks) / 3L % 2L == 1L;
boolean hardcore = client.player.getWorld().getLevelProperties().isHardcore();

InGameHud.HeartType heartType = InGameHud.HeartType.fromPlayerState(client.player);
drawHeart(c, InGameHud.HeartType.CONTAINER, pos.x(), pos.y(), hardcore, blinking, false);
drawHeart(c, heartType, pos.x(), pos.y(), hardcore, blinking, renderHealthValue % 2 == 1);
//InGameHud.HeartType heartType = InGameHud.HeartType.fromPlayerState(client.player);
//drawHeart(c, InGameHud.HeartType.CONTAINER, pos.x(), pos.y(), hardcore, blinking, false);
//drawHeart(c, heartType, pos.x(), pos.y(), hardcore, blinking, renderHealthValue % 2 == 1);
},
(c, pos, text) -> drawBorderedText(c, text, pos, 0xFF6262),
true, false
Expand Down

0 comments on commit ace1b82

Please # to comment.