Skip to content

Commit

Permalink
Reserved water is now saved
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewScholefield committed Sep 28, 2015
1 parent f9f6eb3 commit 28b42c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/files.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ bool saveWorld(WorldObject &world)
saveMobs(worldFile);
saveChests(worldFile, world);
saveFurnaces(worldFile, world);
fprintf(worldFile, "%d ", world.reservedWater);
fclose(worldFile);
iprintf("\x1b[19;1H ");
playMusic(MUSIC_CALM);
Expand Down Expand Up @@ -140,6 +141,7 @@ bool loadWorld(WorldObject *world)
loadMobs(worldFile);
loadChests(worldFile, *world);
loadFurnaces(worldFile, *world);
fscanf(worldFile, "%d ", &world->reservedWater);
iprintf("\x1b[22;1H ");
fclose(worldFile);
playMusic(MUSIC_CALM);
Expand Down

0 comments on commit 28b42c6

Please sign in to comment.