added igloos to 1.8.9 test world

master
Stefan Dollase 2016-01-31 19:59:54 +01:00
parent d70a86e70f
commit 6472621507
5 changed files with 9 additions and 3 deletions

View File

@ -22,7 +22,12 @@ public enum DefaultTestWorldDirectoryDeclaration {
return INSTANCE.declaration;
}
private static final int MINIMAL_NUMBER_OF_COORDINATES = 5;
/**
* This should always be 0. Only change it when trying to find a good test
* world.
*/
private static final int MINIMAL_NUMBER_OF_COORDINATES = 0;
private static final int OVERWORLD_FRAGMENTS_AROUND_ORIGIN = 10;
private static final int END_FRAGMENTS_AROUND_ORIGIN = 4;

View File

@ -26,6 +26,7 @@ public enum TestWorldDeclaration {
TestWorldEntryNames.WITCH_HUTS,
TestWorldEntryNames.JUNGLE_TEMPLES,
TestWorldEntryNames.DESERT_TEMPLES,
TestWorldEntryNames.IGLOOS,
TestWorldEntryNames.MINESHAFTS,
TestWorldEntryNames.OCEAN_MONUMENTS,
TestWorldEntryNames.NETHER_FORTRESSES,

View File

@ -6,6 +6,7 @@ import java.util.function.Function;
import amidst.documentation.GsonConstructor;
import amidst.documentation.Immutable;
import amidst.logging.Log;
import amidst.mojangapi.mocking.FragmentCornerWalker;
import amidst.mojangapi.mocking.NameFilteredWorldIconCollector;
import amidst.mojangapi.world.World;
@ -37,8 +38,7 @@ public class CoordinatesCollectionJson {
additionalDataFactory.apply(corner)));
long[][] coordinatesArray = createArray(consumer.get());
if (coordinatesArray.length < minimalNumberOfCoordinates) {
throw new RuntimeException("not enough coordinates for '" + name
+ "'");
Log.e("not enough coordinates for '" + name + "'");
}
return new CoordinatesCollectionJson(coordinatesArray);
}