chore: Format our loggers properly

This commit is contained in:
NotMyFault
2021-12-29 17:13:20 +01:00
parent e2a1721a5c
commit 19de815ab4
8 changed files with 16 additions and 16 deletions

View File

@ -178,7 +178,7 @@ public class FastSchematicReader extends NBTSchematicReader {
try {
state = BlockState.get(palettePart);
} catch (InputParseException ignored) {
LOGGER.warn("Invalid BlockState in palette: " + palettePart + ". Block will be replaced with air.");
LOGGER.warn("Invalid BlockState in palette: {}. Block will be replaced with air.", palettePart);
state = BlockTypes.AIR.getDefaultState();
}
int index = (int) entry.getValue();

View File

@ -722,7 +722,7 @@ public final class EditSessionBuilder {
"FAWE config.yml to let FAWE recognize the extent:"));
event.getActor().print(toReturn.getClass().getName());
} else {
LOGGER.warn("Potentially unsafe extent blocked: " + toReturn.getClass().getName());
LOGGER.warn("Potentially unsafe extent blocked: {}", toReturn.getClass().getName());
LOGGER.warn(
" - For area restrictions and block logging, it is recommended that third party plugins use the FAWE API");
LOGGER.warn(

View File

@ -206,7 +206,7 @@ public class MCEditSchematicReader extends NBTSchematicReader {
//FAWE start - tile entity safety - perhaps caused by the old issue with tile entities created in the wrong
// position in schematics?
if (index >= blocks.length) {
LOGGER.warn("Skipping corrupt tile entity at position " + x + " " + y + " " + z + " in schematic.");
LOGGER.warn("Skipping corrupt tile entity at position {} {} {} in schematic.", x, y, z);
continue;
}
@ -275,8 +275,8 @@ public class MCEditSchematicReader extends NBTSchematicReader {
byte data = blockData[index];
int combined = block << 8 | data;
if (unknownBlocks.add(combined)) {
LOGGER.warn("Unknown block when loading schematic: "
+ block + ":" + data + ". This is most likely a bad schematic.");
LOGGER.warn("Unknown block when loading schematic: {} {}. This is most likely a" +
"bad schematic.", block, data);
}
}
} catch (WorldEditException ignored) { // BlockArrayClipboard won't throw this