Skip to content

Commit

Permalink
Fixed ready signs without floor config; resolves #111
Browse files Browse the repository at this point in the history
  • Loading branch information
Sataniel98 committed Jul 12, 2016
1 parent 81be1be commit d0c725d
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion abstract/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
2 changes: 1 addition & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,10 @@ private void ready(DGamePlayer dPlayer) {
}

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ public DResourceWorld(DWorlds worlds, String name) {
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);
}
Expand Down
2 changes: 1 addition & 1 deletion craftbukkit_1_10_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion craftbukkit_1_9_R1/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion craftbukkit_1_9_R2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion shade/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit d0c725d

Please sign in to comment.