Skip to content

Commit

Permalink
Updated to 1.15.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Zodsmar committed Dec 29, 2019
1 parent c47107d commit 3714b38
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/main/java/sassa/gui/GUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ public class GUI {
private static int searchQuadrantWidth = 512;
private static int searchQuadrantHeight = 512;
private static int maximumMatchingWorldsCount = 10;
public static String minecraftVersion = Version.V1_15;
public static String minecraftVersion = Version.V1_15_1;
String[] versions = {
/*1.15.x*/ Version.V1_15,
/*1.15.x*/ Version.V1_15_1, Version.V1_15,
/*1.14.x*/ Version.V1_14_4, Version.V1_14_3, Version.V1_14,
/*1.13.x*/ Version.V1_13_2, Version.V1_13_1, Version.V1_13,
/*1.12.x*/ Version.V1_12_2, Version.V1_12,
Expand Down
19 changes: 9 additions & 10 deletions src/main/java/sassa/main/BiomeSearcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,12 @@ boolean accept(World world) throws MinecraftInterfaceException, UnknownBiomeInde

if(undiscoveredStructures.contains(struct)){
undiscoveredStructures.remove(struct);
} else {
return false;
}
System.out.println(undiscoveredStructures);
if(undiscoveredStructures.isEmpty()){
return true;
}

/*else {
return false;
}*/

}

/*
Expand All @@ -251,7 +250,7 @@ boolean accept(World world) throws MinecraftInterfaceException, UnknownBiomeInde
Set<Biome> undiscoveredRejectedBiomes = new HashSet<>(Arrays.asList(rejectedBiomes));
HashMap<Biome, String> undiscoveredBiomeSets = new HashMap<>(biomeSets);
HashMap<Biome, String> undiscoveredRejectedBiomeSets = new HashMap<>(rejectedBiomeSets);

System.out.println(undiscoveredBiomes);
for (int biomeCodeIndex = 0; biomeCodeIndex < biomeCodesCount; biomeCodeIndex++) {
if (undiscoveredBiomes.remove(Biome.getByIndex(biomeCodes[biomeCodeIndex]))) {
// A new biome has been found.
Expand All @@ -277,11 +276,11 @@ boolean accept(World world) throws MinecraftInterfaceException, UnknownBiomeInde
}
}

if (undiscoveredBiomes.isEmpty() && undiscoveredBiomeSets.isEmpty()) {

// && (GUI.findStructures.isSelected() && hasStructures)) {
if (undiscoveredBiomes.isEmpty() && undiscoveredBiomeSets.isEmpty() && undiscoveredStructures.isEmpty()) {
return true;
}

System.out.println(undiscoveredStructures);
System.out.println(undiscoveredBiomes);
System.out.println(undiscoveredBiomeSets);
return false;
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/sassa/util/Version.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
public class Version {

public static final String V9_99_99 = "9.99.9"; // Used to block out unsupported biomes/structures
public static final String V1_15_1 = "1.15.1";
public static final String V1_15 = "1.15";
public static final String V1_14_4 = "1.14.4";
public static final String V1_14_3 = "1.14.3";
Expand All @@ -34,6 +35,7 @@ public class Version {

public static void registerSupportedVersions() {
versions.put(V9_99_99, 99999);
versions.put(V1_15_1, 1501);
versions.put(V1_15, 1500);
versions.put(V1_14_4, 1404);
versions.put(V1_14_3, 1403);
Expand Down

0 comments on commit 3714b38

Please sign in to comment.