Skip to content

Commit

Permalink
fix DeathLoopListener
Browse files Browse the repository at this point in the history
  • Loading branch information
acrylic-style committed Nov 9, 2024
1 parent 394f68e commit 974e566
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {
}

group = "net.azisaba"
version = "6.18.0+1.21.1"
version = "6.18.0a+1.21.1"

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ private boolean hasTempHealthBoost(LivingEntity entity) {
return false;
}
for (AttributeModifier modifier : attr.getModifiers()) {
if (modifier.getName().equals("lifecore.temp_health_boost_scalar") ||
modifier.getName().equals("lifecore.temp_health_boost_number")) {
if (modifier.getKey().equals(new NamespacedKey("lifecore", "temp_health_boost_scalar")) ||
modifier.getKey().equals(new NamespacedKey("lifecore", "temp_health_boost_number"))) {
return true;
}
}
Expand Down

0 comments on commit 974e566

Please sign in to comment.