Update debug log message in EntityAttributeModifier

Changed the debug log message to reflect the addition operation for attributes, providing clearer information during debugging and better tracing of value changes.
This commit is contained in:
Teriuihi 2024-10-19 00:02:20 +02:00
parent 2c3174d24f
commit 7704d75960

View File

@ -29,7 +29,7 @@ public class EntityAttributeModifier implements EntityModifier {
log.warn("Entity {} has no {} attribute", entity.getName(), attribute.name());
return;
}
log.info("DEBUG: Setting attribute {} to {}", attribute.name(), value);
log.info("DEBUG: Adding {} to attribute {}", attributeInstance.getValue() - value, attribute.name());
NamespacedKey namespacedKey = NamespacedKey.fromString("cm", main);
if (namespacedKey == null) {
log.error("Namespaced key was null when applying attribute modifier");