mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-01-05 15:57:37 +01:00
Still not working :/ Need to simulate worlds now...
This commit is contained in:
parent
e45ae8f9dc
commit
728002ecce
@ -41,15 +41,24 @@ public class TestWorldImport {
|
||||
}
|
||||
|
||||
public boolean matches(Object creator) {
|
||||
System.out.println("Checking world creators.");
|
||||
if (!((WorldCreator) creator).name().equals(this.worldCreator.name())) {
|
||||
System.out.println("Checking Names...");
|
||||
return false;
|
||||
} else if (!((WorldCreator) creator).environment().equals(this.worldCreator.environment())) {
|
||||
return false;
|
||||
} else if (((WorldCreator) creator).seed() != this.worldCreator.seed()) {
|
||||
return false;
|
||||
} else if (!((WorldCreator) creator).generator().equals(this.worldCreator.generator())) {
|
||||
System.out.println("Checking Environments...");
|
||||
return false;
|
||||
}
|
||||
// Don't check the seed by default, as it's randomized.
|
||||
// else if (((WorldCreator) creator).seed() != this.worldCreator.seed()) {
|
||||
// System.out.print("Checking Seeds...");
|
||||
// return false;
|
||||
// }
|
||||
// else if (!((WorldCreator) creator).generator().equals(this.worldCreator.generator())) {
|
||||
// System.out.print("Checking Gens...");
|
||||
// return false;
|
||||
// }
|
||||
System.out.println("Creators matched!!!");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -73,10 +82,13 @@ public class TestWorldImport {
|
||||
}
|
||||
|
||||
public boolean matches(Object creator) {
|
||||
System.out.println("Checking above...");
|
||||
if (super.l == null || creator == null) {
|
||||
return false;
|
||||
}
|
||||
return ((Location) creator).getBlockY() > super.l.getBlockY();
|
||||
boolean equal = ((Location) creator).getBlockY() > super.l.getBlockY();
|
||||
System.out.println("Checking equals/\\..." + equal);
|
||||
return equal;
|
||||
}
|
||||
}
|
||||
|
||||
@ -90,7 +102,9 @@ public class TestWorldImport {
|
||||
if (super.l == null || creator == null) {
|
||||
return false;
|
||||
}
|
||||
return ((Location) creator).getBlockY() < super.l.getBlockY();
|
||||
boolean equal = ((Location) creator).getBlockY() <= super.l.getBlockY();
|
||||
System.out.println("Checking equals\\/..." + equal);
|
||||
return equal;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user