From 4937b6e337f3ea277e4da120df3881292599ede6 Mon Sep 17 00:00:00 2001 From: Teriuihi Date: Fri, 18 Oct 2024 23:27:29 +0200 Subject: [PATCH] Log config data for debugging Added debug statements to log configuration details including the attribute names and modifier values being processed. This will help in identifying and troubleshooting issues with entity modifiers setup. --- src/main/java/com/alttd/custommobs/config/MobTypes.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/alttd/custommobs/config/MobTypes.java b/src/main/java/com/alttd/custommobs/config/MobTypes.java index 1cf05df..d959402 100644 --- a/src/main/java/com/alttd/custommobs/config/MobTypes.java +++ b/src/main/java/com/alttd/custommobs/config/MobTypes.java @@ -72,6 +72,7 @@ public class MobTypes extends AbstractConfig { return; } EntityModifier value = getAttribute(attribute, config.getDouble(prefix + key + ".modifiers." + modifier, "value", 1)); + System.out.println(prefix + key + ".modifiers." + modifier); if (value == null) return; entityModifiers.add(value); @@ -83,6 +84,8 @@ public class MobTypes extends AbstractConfig { private static EntityModifier getAttribute(String attributeName, double value) { try { Attribute attribute = Attribute.valueOf(attributeName); + System.out.println(attributeName); + System.out.println(attribute.name()); return new EntityAttributeModifier(config.main, attribute, value); } catch (IllegalArgumentException e) { log.error("Invalid attribute {}", attributeName, e);