mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2024-11-14 10:45:23 +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>
|
<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>
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user