Fix world config saving error

This commit is contained in:
Daniel Saukel 2018-04-21 15:39:52 +02:00
parent 154a6d2383
commit c4dda41945

View File

@ -324,7 +324,9 @@ public class WorldConfig extends GameRuleProvider {
configFile.set("secureObjects", secureObjects);
configFile.set("invitedPlayers", invitedPlayers);
configFile.set("worldEnvironment", worldEnvironment.name());
if (worldEnvironment != null) {
configFile.set("worldEnvironment", worldEnvironment.name());
}
try {
configFile.save(file);