Add sanity check for implementation version

This commit is contained in:
KennyTV 2020-04-24 11:45:54 +02:00
parent 49daeb33c0
commit 48a69f1411
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -55,7 +55,8 @@ public interface ViaBackwardsPlatform {
if (isOutdated()) return;
Via.getManager().getSubPlatforms().add(ViaBackwards.class.getPackage().getImplementationVersion());
String version = ViaBackwards.class.getPackage().getImplementationVersion();
Via.getManager().getSubPlatforms().add(version != null ? version : "UNKNOWN");
getLogger().info("Loading translations...");
TranslatableRewriter.loadTranslatables();