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) {
|
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(", ")));
|
log.info(mobType.entityModifiers().stream().map(EntityModifier::getName).collect(Collectors.joining(", ")));
|
||||||
if (entityType.getEntityClass() == null) {
|
if (entityType.getEntityClass() == null) {
|
||||||
log.warn("Tried to spawn entity with null entity class {}", entityType.name());
|
log.warn("Tried to spawn entity with null entity class {}", entityType.name());
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,6 @@ public class Config extends AbstractConfig{
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
private static void load() {
|
private static void load() {
|
||||||
System.out.println("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
|
|
||||||
log.info("Warnings logging is {}\nDebug logging is {}", WARNINGS, DEBUG);
|
log.info("Warnings logging is {}\nDebug logging is {}", WARNINGS, DEBUG);
|
||||||
DEBUG = config.getBoolean(prefix, "debug", DEBUG);
|
DEBUG = config.getBoolean(prefix, "debug", DEBUG);
|
||||||
WARNINGS = config.getBoolean(prefix, "warnings", WARNINGS);
|
WARNINGS = config.getBoolean(prefix, "warnings", WARNINGS);
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@ public class MobTypes extends AbstractConfig {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
EntityModifier value = getAttribute(attribute, config.getDouble(prefix + key + ".modifiers." + modifier, "value", 1));
|
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)
|
if (value == null)
|
||||||
return;
|
return;
|
||||||
entityModifiers.add(value);
|
entityModifiers.add(value);
|
||||||
|
|
@ -84,8 +84,9 @@ public class MobTypes extends AbstractConfig {
|
||||||
private static EntityModifier getAttribute(String attributeName, double value) {
|
private static EntityModifier getAttribute(String attributeName, double value) {
|
||||||
try {
|
try {
|
||||||
Attribute attribute = Attribute.valueOf(attributeName);
|
Attribute attribute = Attribute.valueOf(attributeName);
|
||||||
System.out.println(attributeName);
|
log.info("DEBUG in case replacements break");
|
||||||
System.out.println(attribute.name());
|
log.info("DEBUG: {}", attributeName);
|
||||||
|
log.info("DEBUG: {}", attribute.name());
|
||||||
return new EntityAttributeModifier(config.main, attribute, value);
|
return new EntityAttributeModifier(config.main, attribute, value);
|
||||||
} catch (IllegalArgumentException e) {
|
} catch (IllegalArgumentException e) {
|
||||||
log.error("Invalid attribute {}", attributeName, e);
|
log.error("Invalid attribute {}", attributeName, e);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user