mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-01-22 08:11:45 +01:00
Hopefully fixed the tests
This commit is contained in:
parent
3395f3d7c7
commit
53567d4646
@ -39,6 +39,7 @@ public class MockWorldFactory {
|
||||
|
||||
private static void registerWorld(World world) {
|
||||
createdWorlds.put(world.getName(), world);
|
||||
new File(TestInstanceCreator.worldsDirectory, world.getName()).mkdir();
|
||||
}
|
||||
|
||||
private static World basics(String world, World.Environment env, WorldType type) {
|
||||
@ -213,6 +214,8 @@ public class MockWorldFactory {
|
||||
}
|
||||
|
||||
public static void clearWorlds() {
|
||||
for (String name : createdWorlds.keySet())
|
||||
new File(TestInstanceCreator.worldsDirectory, name).delete();
|
||||
createdWorlds.clear();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user