Optimise Flip.Rotate method

This commit is contained in:
UnknownShadow200 2018-03-01 21:04:54 +11:00
parent 497236be31
commit 59582dd187
2 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ namespace MCGalaxy.Commands.Moderation {
if (!CommandParser.IsBlockAllowed(who, "place", block)) {
who.BlockBindings[b] = (BlockID)b;
Player.Message(who, " Hence, binding for &b{0} %Swas unbound",
Block.GetName(who, defaultBinding));
Block.GetName(who, (BlockID)b));
}
}
}

View File

@ -104,7 +104,7 @@ namespace MCGalaxy.Drawing {
return flipped;
}
const int posX = 0x100, negX = 0x200, posY = 0x010, negY = 0x020, posZ = 0x001, negZ = 0x002;
const int posX = 0, negX = 1, posY = 2, negY = 3, posZ = 4, negZ = 5;
static int Rotate(int row, int x, int y, int z, CopyState state) {
switch (row) {
case posX: return x;