mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-22 10:15:54 +01:00
Removed created file checks, fixed comparison in world generator.
This commit is contained in:
parent
4d4bb73e4f
commit
9867ebb09a
@ -48,17 +48,8 @@ public class FileChecker {
|
|||||||
public void compareFiles() {
|
public void compareFiles() {
|
||||||
for (File.Type fileType : File.Type.values()) {
|
for (File.Type fileType : File.Type.values()) {
|
||||||
File file = loadedFiles.get(fileType);
|
File file = loadedFiles.get(fileType);
|
||||||
FileConfiguration configLoad = file.getFileConfiguration();
|
|
||||||
|
|
||||||
if (fileType == File.Type.CREATED) {
|
if (fileType == File.Type.RESOURCE) {
|
||||||
File resourceFile = loadedFiles.get(File.Type.RESOURCE);
|
|
||||||
|
|
||||||
for (String configKeyList : file.getKeys().keySet()) {
|
|
||||||
if (!resourceFile.getKeys().containsKey(configKeyList)) {
|
|
||||||
configLoad.set(configKeyList, null);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else if (fileType == File.Type.RESOURCE) {
|
|
||||||
File createdFile = loadedFiles.get(File.Type.CREATED);
|
File createdFile = loadedFiles.get(File.Type.CREATED);
|
||||||
FileConfiguration createdConfigLoad = createdFile.getFileConfiguration();
|
FileConfiguration createdConfigLoad = createdFile.getFileConfiguration();
|
||||||
|
|
||||||
|
@ -139,7 +139,7 @@ public class WorldManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private ChunkGenerator getWorldGenerator(String mapName, String worldGeneratorName, IslandWorld islandWorld) {
|
private ChunkGenerator getWorldGenerator(String mapName, String worldGeneratorName, IslandWorld islandWorld) {
|
||||||
if (worldGeneratorName == null || worldGeneratorName == "default" || worldGeneratorName.length() == 0) {
|
if (worldGeneratorName == null || worldGeneratorName.equalsIgnoreCase("default") || worldGeneratorName.length() == 0) {
|
||||||
return new VoidGenerator(islandWorld);
|
return new VoidGenerator(islandWorld);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user