diff --git a/build.gradle.kts b/build.gradle.kts index add5287..bcaa201 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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)) diff --git a/src/main/java/com/github/mori01231/lifecore/listener/DeathLoopListener.java b/src/main/java/com/github/mori01231/lifecore/listener/DeathLoopListener.java index c78ef50..7fa799b 100644 --- a/src/main/java/com/github/mori01231/lifecore/listener/DeathLoopListener.java +++ b/src/main/java/com/github/mori01231/lifecore/listener/DeathLoopListener.java @@ -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; } }