mirror of
https://github.com/Zrips/Jobs.git
synced 2025-01-04 23:37:49 +01:00
We should accept old and new action definitions at same time
This commit is contained in:
parent
d03d53d7e5
commit
c02dfe8472
4
pom.xml
4
pom.xml
@ -5,7 +5,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>Jobs</groupId>
|
<groupId>Jobs</groupId>
|
||||||
<artifactId>jobs</artifactId>
|
<artifactId>jobs</artifactId>
|
||||||
<version>5.2.2.0</version>
|
<version>5.2.2.1</version>
|
||||||
<name>Jobs</name>
|
<name>Jobs</name>
|
||||||
<url>http://maven.apache.org</url>
|
<url>http://maven.apache.org</url>
|
||||||
|
|
||||||
@ -19,7 +19,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.papermc.paper</groupId>
|
<groupId>io.papermc.paper</groupId>
|
||||||
<artifactId>paper-api</artifactId>
|
<artifactId>paper-api</artifactId>
|
||||||
<version>1.20.1-R0.1-SNAPSHOT</version>
|
<version>1.20.4-R0.1-SNAPSHOT</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
<exclusions>
|
<exclusions>
|
||||||
<exclusion>
|
<exclusion>
|
||||||
|
@ -1550,12 +1550,14 @@ public class ConfigManager {
|
|||||||
jobInfo.add(new JobInfo(actionType, id, meta, type + subType, income, incomeEquation, experience, expEquation, pointsEquation, points, 1,
|
jobInfo.add(new JobInfo(actionType, id, meta, type + subType, income, incomeEquation, experience, expEquation, pointsEquation, points, 1,
|
||||||
-1, typeSection.getCurrentPath(), null, null, null));
|
-1, typeSection.getCurrentPath(), null, null, null));
|
||||||
}
|
}
|
||||||
|
|
||||||
job.setJobInfo(actionType, jobInfo);
|
job.setJobInfo(actionType, jobInfo);
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (String key : typeSection.getKeys(false)) {
|
for (String key : typeSection.getKeys(false)) {
|
||||||
|
|
||||||
|
if (key.equalsIgnoreCase("materials"))
|
||||||
|
continue;
|
||||||
|
|
||||||
ConfigurationSection section = typeSection.getConfigurationSection(key);
|
ConfigurationSection section = typeSection.getConfigurationSection(key);
|
||||||
if (section == null) {
|
if (section == null) {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user