Fix incorrect attribute modification calculation
Correct the calculation of the value to be added to an attribute. Adjusted the logging statement to reflect the new calculation method, ensuring accurate debug information.
This commit is contained in:
@@ -29,8 +29,7 @@ public class EntityAttributeModifier implements EntityModifier {
|
||||
log.warn("Entity {} has no {} attribute", entity.getName(), attribute.name());
|
||||
return;
|
||||
}
|
||||
log.info("DEBUG: baseValue {}, value {}, setting {}", attributeInstance.getBaseValue(), attributeInstance.getValue(), value);
|
||||
double add = value;
|
||||
double add = value - attributeInstance.getValue();
|
||||
log.info("DEBUG: Adding {} to attribute {}", add, attribute.name());
|
||||
NamespacedKey namespacedKey = NamespacedKey.fromString("cm", main);
|
||||
if (namespacedKey == null) {
|
||||
|
||||
Reference in New Issue
Block a user