Fix checkstyle errors

This commit is contained in:
Risto Lahtela 2020-11-06 11:25:01 +02:00
parent 596efd6294
commit a9fa739c2a

View File

@ -49,7 +49,7 @@ class BukkitPartBuilder implements MessageBuilder {
BukkitPartBuilder nextPart = new BukkitPartBuilder(this);
try {
nextPart.part.appendLegacy(text);
} catch (NoSuchMethodError oldVersion_1_8) {
} catch (NoSuchMethodError oldVersion) { // not supported in 1.8
nextPart.part.append(ChatColor.translateAlternateColorCodes('§', text));
}
return nextPart;
@ -113,7 +113,7 @@ class BukkitPartBuilder implements MessageBuilder {
} else if (previous != null) {
try {
previous.part.append(part.create());
} catch (NoSuchMethodError oldVersion_1_8) {
} catch (NoSuchMethodError oldVersion) { // not supported in 1.8
sendOld();
return;
}