build commit
This commit is contained in:
parent
d29c3eb3c3
commit
153543fb1f
|
|
@ -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());
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user