Keep author and language name for v1 language files

This commit is contained in:
GeorgH93 2019-08-12 18:25:35 +02:00
parent 068fbf1a14
commit 1a5fa66737
No known key found for this signature in database
GPG Key ID: D1630D37F9E4B3C8
2 changed files with 12 additions and 3 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>at.pcgamingfreaks</groupId> <groupId>at.pcgamingfreaks</groupId>
<artifactId>Minepacks</artifactId> <artifactId>Minepacks</artifactId>
<version>2.0.9</version> <version>2.0.10-RC1</version>
<scm> <scm>
<connection>scm:git:git@github.com:GeorgH93/Minepacks.git</connection> <connection>scm:git:git@github.com:GeorgH93/Minepacks.git</connection>
@ -78,7 +78,7 @@
<dependency> <dependency>
<groupId>at.pcgamingfreaks</groupId> <groupId>at.pcgamingfreaks</groupId>
<artifactId>PluginLib</artifactId> <artifactId>PluginLib</artifactId>
<version>1.0.15-SNAPSHOT</version> <version>1.0.16-SNAPSHOT</version>
</dependency> </dependency>
<!-- BadRabbit --> <!-- BadRabbit -->
<dependency> <dependency>

View File

@ -77,7 +77,7 @@ public static void updateLanguage(YAML oldYAML, YAML newYAML, Logger logger)
try try
{ {
keys = key.split("\\."); keys = key.split("\\.");
if(keys.length == 3) if(keys.length == 3 && keys[0].equals("Language"))
{ {
switch(keys[1]) switch(keys[1])
{ {
@ -106,6 +106,15 @@ public static void updateLanguage(YAML oldYAML, YAML newYAML, Logger logger)
break; break;
} }
} }
if(keys.length == 1)
{
switch(keys[0])
{
case "LanguageName":
case "Author":
simpleConverter.put(key, key);
}
}
} }
catch(Exception e) catch(Exception e)
{ {