mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 12:42:22 -04:00
Fix mistakes in recent commits
This commit is contained in:
parent
9595629d0a
commit
eca573793a
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user