mirror of
https://github.com/Zrips/Jobs.git
synced 2025-01-02 14:29:07 +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>
|
||||
<groupId>Jobs</groupId>
|
||||
<artifactId>jobs</artifactId>
|
||||
<version>5.2.2.0</version>
|
||||
<version>5.2.2.1</version>
|
||||
<name>Jobs</name>
|
||||
<url>http://maven.apache.org</url>
|
||||
|
||||
@ -19,7 +19,7 @@
|
||||
<dependency>
|
||||
<groupId>io.papermc.paper</groupId>
|
||||
<artifactId>paper-api</artifactId>
|
||||
<version>1.20.1-R0.1-SNAPSHOT</version>
|
||||
<version>1.20.4-R0.1-SNAPSHOT</version>
|
||||
<scope>provided</scope>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
|
@ -1550,12 +1550,14 @@ public class ConfigManager {
|
||||
jobInfo.add(new JobInfo(actionType, id, meta, type + subType, income, incomeEquation, experience, expEquation, pointsEquation, points, 1,
|
||||
-1, typeSection.getCurrentPath(), null, null, null));
|
||||
}
|
||||
|
||||
job.setJobInfo(actionType, jobInfo);
|
||||
continue;
|
||||
}
|
||||
|
||||
for (String key : typeSection.getKeys(false)) {
|
||||
|
||||
if (key.equalsIgnoreCase("materials"))
|
||||
continue;
|
||||
|
||||
ConfigurationSection section = typeSection.getConfigurationSection(key);
|
||||
if (section == null) {
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user