Fix config string format in MobTypes.java
Replaced concatenation with String.format for clarity and consistency. This change ensures that the configuration strings are constructed correctly, preventing potential runtime errors.
This commit is contained in:
parent
e8b926ab41
commit
3da2b37aed
|
|
@ -81,7 +81,7 @@ public class MobTypes extends AbstractConfig {
|
|||
return;
|
||||
}
|
||||
log.info("8");
|
||||
EntityModifier value = getAttribute(attribute, config.getDouble(prefix + key + ".modifiers." + modifier, "value", 1));
|
||||
EntityModifier value = getAttribute(attribute, config.getDouble(String.format("%s%s.modifiers.%s.", prefix, key, modifier), "value", 1));
|
||||
log.info("9");
|
||||
if (value == null) {
|
||||
log.info("RETURN (10)");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user