From 153543fb1fac24a52acdad0296e8f9ac71143879 Mon Sep 17 00:00:00 2001 From: Teriuihi Date: Fri, 18 Oct 2024 23:37:18 +0200 Subject: [PATCH] build commit --- .../com/alttd/custommobs/commands/subcommands/Spawn.java | 1 - src/main/java/com/alttd/custommobs/config/Config.java | 1 - src/main/java/com/alttd/custommobs/config/MobTypes.java | 7 ++++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/alttd/custommobs/commands/subcommands/Spawn.java b/src/main/java/com/alttd/custommobs/commands/subcommands/Spawn.java index fcd6689..8fe917b 100644 --- a/src/main/java/com/alttd/custommobs/commands/subcommands/Spawn.java +++ b/src/main/java/com/alttd/custommobs/commands/subcommands/Spawn.java @@ -106,7 +106,6 @@ public class Spawn extends SubCommand { } private void spawnMob(World world, Location location, EntityType entityType, MobType mobType) { - System.out.println(mobType.entityModifiers().stream().map(EntityModifier::getName).collect(Collectors.joining(", "))); log.info(mobType.entityModifiers().stream().map(EntityModifier::getName).collect(Collectors.joining(", "))); if (entityType.getEntityClass() == null) { log.warn("Tried to spawn entity with null entity class {}", entityType.name()); diff --git a/src/main/java/com/alttd/custommobs/config/Config.java b/src/main/java/com/alttd/custommobs/config/Config.java index 3908cb2..5d8390b 100644 --- a/src/main/java/com/alttd/custommobs/config/Config.java +++ b/src/main/java/com/alttd/custommobs/config/Config.java @@ -31,7 +31,6 @@ public class Config extends AbstractConfig{ @SuppressWarnings("unused") private static void load() { - System.out.println("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"); log.info("Warnings logging is {}\nDebug logging is {}", WARNINGS, DEBUG); DEBUG = config.getBoolean(prefix, "debug", DEBUG); WARNINGS = config.getBoolean(prefix, "warnings", WARNINGS); diff --git a/src/main/java/com/alttd/custommobs/config/MobTypes.java b/src/main/java/com/alttd/custommobs/config/MobTypes.java index d959402..2e1d077 100644 --- a/src/main/java/com/alttd/custommobs/config/MobTypes.java +++ b/src/main/java/com/alttd/custommobs/config/MobTypes.java @@ -72,7 +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); + log.info("{}{}.modifiers.{}", prefix, key, modifier); if (value == null) return; entityModifiers.add(value); @@ -84,8 +84,9 @@ 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()); + log.info("DEBUG in case replacements break"); + log.info("DEBUG: {}", attributeName); + log.info("DEBUG: {}", attribute.name()); return new EntityAttributeModifier(config.main, attribute, value); } catch (IllegalArgumentException e) { log.error("Invalid attribute {}", attributeName, e);