Fixed ready signs without floor config; resolves #111

This commit is contained in:
Daniel Saukel 2016-07-12 23:54:12 +02:00
parent 81be1bec85
commit d0c725d2d7
9 changed files with 16 additions and 8 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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