mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-13 01:07:30 +07:00
Bugfixes / Rework of save discovery system
This commit is contained in:
@ -198,7 +198,7 @@ public class ApplicationTests{
|
||||
void save(){
|
||||
world.loadMap(testMap);
|
||||
assertTrue(state.teams.get(defaultTeam).cores.size > 0);
|
||||
SaveIO.saveToSlot(0);
|
||||
SaveIO.save(saveDirectory.child("0.msav"));
|
||||
}
|
||||
|
||||
@Test
|
||||
@ -206,9 +206,9 @@ public class ApplicationTests{
|
||||
world.loadMap(testMap);
|
||||
Map map = world.getMap();
|
||||
|
||||
SaveIO.saveToSlot(0);
|
||||
SaveIO.save(saveDirectory.child("0.msav"));
|
||||
resetWorld();
|
||||
SaveIO.loadFromSlot(0);
|
||||
SaveIO.load(saveDirectory.child("0.msav"));
|
||||
|
||||
assertEquals(world.width(), map.width);
|
||||
assertEquals(world.height(), map.height);
|
||||
|
Reference in New Issue
Block a user