mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-23 04:52:38 -08:00
Bugfixes / Rework of save discovery system
This commit is contained in:
parent
d969741f90
commit
e103d62b75
12 changed files with 99 additions and 117 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue