Fix mistakes in recent commits

This commit is contained in:
UnknownShadow200 2017-02-19 14:56:48 +11:00
parent 9595629d0a
commit eca573793a
2 changed files with 3 additions and 4 deletions

View File

@ -70,7 +70,6 @@ namespace MCGalaxy.Drawing {
List<PaletteEntry> entries = new List<PaletteEntry>();
foreach (string line in lines) {
Server.s.Log(line);
if (line.StartsWith("#") || line.Length == 0) continue;
string[] parts = line.Split(':');
@ -83,8 +82,8 @@ namespace MCGalaxy.Drawing {
}
static PaletteEntry ParseEntry(string[] parts) {
byte r = byte.Parse(parts[3]), g = byte.Parse(parts[2]);
byte b = byte.Parse(parts[1]), block = byte.Parse(parts[0]);
byte r = byte.Parse(parts[1]), g = byte.Parse(parts[2]);
byte b = byte.Parse(parts[3]), block = byte.Parse(parts[0]);
return new PaletteEntry(r, g, b, block);
}

View File

@ -106,7 +106,7 @@ namespace MCGalaxy.Drawing.Ops {
}
if (block >= Block.CpeCount) { extBlock = block; block = Block.custom_block; }
output(Place(x, y, z, block, 0));
output(Place(x, y, z, block, extBlock));
}
void CalcState(int dir) {