Fix bug I introduced 3 commits ago where models.txt/skins.txt saving was borked. (Thanks goodlyay)

This commit is contained in:
UnknownShadow200 2016-08-13 08:08:26 +10:00
parent 965e9c6ecc
commit dd179325b9
2 changed files with 12 additions and 7 deletions

View File

@ -79,8 +79,8 @@ namespace MCGalaxy {
void SaveEntries(StreamWriter w) {
lock (locker) {
foreach (string p in players)
w.WriteLine(p);
foreach (string l in lines)
w.WriteLine(l);
}
}

View File

@ -195,11 +195,16 @@ namespace MCGalaxy {
}
public void SendCurrentEnvColors() {
SendEnvColor(0, level.SkyColor);
SendEnvColor(1, level.CloudColor);
SendEnvColor(2, level.FogColor);
SendEnvColor(3, level.ShadowColor);
SendEnvColor(4, level.LightColor);
//SendEnvColor(0, level.SkyColor);
//SendEnvColor(1, level.CloudColor);
//SendEnvColor(2, level.FogColor);
//SendEnvColor(3, level.ShadowColor);
//SendEnvColor(4, level.LightColor);
SendEnvColor(0, -200, -200, -200);
SendEnvColor(1, -100, -100, -100);
SendEnvColor(2, 0, 0, 0);
SendEnvColor(3, -2000, -2000, -2000);
SendEnvColor(4, -1000, -1000, -1000);
}
void SendEnvColor(byte type, string src) {