1
0
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:
Zrips 2023-12-11 12:41:47 +02:00
parent d03d53d7e5
commit c02dfe8472
2 changed files with 6 additions and 4 deletions

View File

@ -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>

View File

@ -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;