mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 21:48:43 +01:00
Fix world config saving error
This commit is contained in:
parent
154a6d2383
commit
c4dda41945
@ -324,7 +324,9 @@ public class WorldConfig extends GameRuleProvider {
|
|||||||
|
|
||||||
configFile.set("secureObjects", secureObjects);
|
configFile.set("secureObjects", secureObjects);
|
||||||
configFile.set("invitedPlayers", invitedPlayers);
|
configFile.set("invitedPlayers", invitedPlayers);
|
||||||
configFile.set("worldEnvironment", worldEnvironment.name());
|
if (worldEnvironment != null) {
|
||||||
|
configFile.set("worldEnvironment", worldEnvironment.name());
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
configFile.save(file);
|
configFile.save(file);
|
||||||
|
Loading…
Reference in New Issue
Block a user