mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-12 04:23:54 +00:00
chore: Format our loggers properly
This commit is contained in:
@ -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();
|
||||
|
@ -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(
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user