mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2025-03-09 13:19:04 +01:00
Fixed ready signs without floor config; resolves #111
This commit is contained in:
parent
81be1bec85
commit
d0c725d2d7
@ -8,6 +8,6 @@
|
||||
<parent>
|
||||
<groupId>io.github.dre2n</groupId>
|
||||
<artifactId>dungeonsxl</artifactId>
|
||||
<version>0.14.1-SNAPSHOT</version>
|
||||
<version>0.14.1</version>
|
||||
</parent>
|
||||
</project>
|
||||
|
@ -8,7 +8,7 @@
|
||||
<parent>
|
||||
<groupId>io.github.dre2n</groupId>
|
||||
<artifactId>dungeonsxl</artifactId>
|
||||
<version>0.14.1-SNAPSHOT</version>
|
||||
<version>0.14.1</version>
|
||||
</parent>
|
||||
<build>
|
||||
<resources>
|
||||
|
@ -156,7 +156,10 @@ public class ReadySign extends DSign {
|
||||
}
|
||||
|
||||
if (getGameWorld().getClassesSigns().isEmpty() || dPlayer.getDClass() != null) {
|
||||
GameType forced = getGameWorld().getConfig().getForcedGameType();
|
||||
GameType forced = null;
|
||||
if (getGameWorld().getConfig() != null) {
|
||||
forced = getGameWorld().getConfig().getForcedGameType();
|
||||
}
|
||||
dPlayer.ready(forced == null ? gameType : forced);
|
||||
}
|
||||
|
||||
|
@ -53,6 +53,11 @@ public class DResourceWorld {
|
||||
folder.mkdir();
|
||||
}
|
||||
|
||||
File configFile = new File(folder, "config.yml");
|
||||
if (configFile.exists()) {
|
||||
config = new WorldConfig(configFile);
|
||||
}
|
||||
|
||||
File signDataFile = new File(folder, "DXLData.data");
|
||||
signData = new SignData(signDataFile);
|
||||
}
|
||||
|
@ -8,7 +8,7 @@
|
||||
<parent>
|
||||
<groupId>io.github.dre2n</groupId>
|
||||
<artifactId>dungeonsxl</artifactId>
|
||||
<version>0.14.1-SNAPSHOT</version>
|
||||
<version>0.14.1</version>
|
||||
</parent>
|
||||
<build>
|
||||
<plugins>
|
||||
|
@ -8,7 +8,7 @@
|
||||
<parent>
|
||||
<groupId>io.github.dre2n</groupId>
|
||||
<artifactId>dungeonsxl</artifactId>
|
||||
<version>0.14.1-SNAPSHOT</version>
|
||||
<version>0.14.1</version>
|
||||
</parent>
|
||||
<build>
|
||||
<plugins>
|
||||
|
@ -8,7 +8,7 @@
|
||||
<parent>
|
||||
<groupId>io.github.dre2n</groupId>
|
||||
<artifactId>dungeonsxl</artifactId>
|
||||
<version>0.14.1-SNAPSHOT</version>
|
||||
<version>0.14.1</version>
|
||||
</parent>
|
||||
<build>
|
||||
<plugins>
|
||||
|
2
pom.xml
2
pom.xml
@ -2,7 +2,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>io.github.dre2n</groupId>
|
||||
<artifactId>dungeonsxl</artifactId>
|
||||
<version>0.14.1-SNAPSHOT</version>
|
||||
<version>0.14.1</version>
|
||||
<packaging>pom</packaging>
|
||||
<name>DungeonsXL</name>
|
||||
<url>https://dre2n.github.io</url>
|
||||
|
@ -8,7 +8,7 @@
|
||||
<parent>
|
||||
<groupId>io.github.dre2n</groupId>
|
||||
<artifactId>dungeonsxl</artifactId>
|
||||
<version>0.14.1-SNAPSHOT</version>
|
||||
<version>0.14.1</version>
|
||||
</parent>
|
||||
<build>
|
||||
<finalName>dungeonsxl-${project.version}${buildNo}</finalName>
|
||||
|
Loading…
Reference in New Issue
Block a user