mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2024-12-25 17:17:49 +01:00
Keep author and language name for v1 language files
This commit is contained in:
parent
068fbf1a14
commit
1a5fa66737
4
pom.xml
4
pom.xml
@ -3,7 +3,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>at.pcgamingfreaks</groupId>
|
||||
<artifactId>Minepacks</artifactId>
|
||||
<version>2.0.9</version>
|
||||
<version>2.0.10-RC1</version>
|
||||
|
||||
<scm>
|
||||
<connection>scm:git:git@github.com:GeorgH93/Minepacks.git</connection>
|
||||
@ -78,7 +78,7 @@
|
||||
<dependency>
|
||||
<groupId>at.pcgamingfreaks</groupId>
|
||||
<artifactId>PluginLib</artifactId>
|
||||
<version>1.0.15-SNAPSHOT</version>
|
||||
<version>1.0.16-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<!-- BadRabbit -->
|
||||
<dependency>
|
||||
|
@ -77,7 +77,7 @@ public static void updateLanguage(YAML oldYAML, YAML newYAML, Logger logger)
|
||||
try
|
||||
{
|
||||
keys = key.split("\\.");
|
||||
if(keys.length == 3)
|
||||
if(keys.length == 3 && keys[0].equals("Language"))
|
||||
{
|
||||
switch(keys[1])
|
||||
{
|
||||
@ -106,6 +106,15 @@ public static void updateLanguage(YAML oldYAML, YAML newYAML, Logger logger)
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(keys.length == 1)
|
||||
{
|
||||
switch(keys[0])
|
||||
{
|
||||
case "LanguageName":
|
||||
case "Author":
|
||||
simpleConverter.put(key, key);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user