mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
Optimise Flip.Rotate method
This commit is contained in:
parent
497236be31
commit
59582dd187
@ -121,7 +121,7 @@ namespace MCGalaxy.Commands.Moderation {
|
|||||||
if (!CommandParser.IsBlockAllowed(who, "place", block)) {
|
if (!CommandParser.IsBlockAllowed(who, "place", block)) {
|
||||||
who.BlockBindings[b] = (BlockID)b;
|
who.BlockBindings[b] = (BlockID)b;
|
||||||
Player.Message(who, " Hence, binding for &b{0} %Swas unbound",
|
Player.Message(who, " Hence, binding for &b{0} %Swas unbound",
|
||||||
Block.GetName(who, defaultBinding));
|
Block.GetName(who, (BlockID)b));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -104,7 +104,7 @@ namespace MCGalaxy.Drawing {
|
|||||||
return flipped;
|
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) {
|
static int Rotate(int row, int x, int y, int z, CopyState state) {
|
||||||
switch (row) {
|
switch (row) {
|
||||||
case posX: return x;
|
case posX: return x;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user