Fix /static fill 2d not recalculating direction each time

This commit is contained in:
UnknownShadow200 2018-04-05 14:57:56 +10:00
parent c33862b400
commit cec9edebaa
2 changed files with 5 additions and 2 deletions

View File

@ -66,7 +66,9 @@ namespace MCGalaxy.Commands.Building {
BlockID old = p.level.GetBlock(x, y, z);
if (!CommandParser.IsBlockAllowed(p, "fill over", old)) return false;
if (dArgs.Mode == DrawMode.volcano) dArgs.Mode = Calc2DFill(p, marks);
bool is2D = dArgs.Mode == DrawMode.volcano;
if (is2D) dArgs.Mode = Calc2DFill(p, marks);
FillDrawOp op = (FillDrawOp)dArgs.Op;
op.Positions = FillDrawOp.FloodFill(p, p.level.PosToInt(x, y, z), old, dArgs.Mode);
int count = op.Positions.Count;
@ -79,6 +81,7 @@ namespace MCGalaxy.Commands.Building {
success = base.DoDraw(p, marks, state, block);
}
if (is2D) dArgs.Mode = DrawMode.volcano;
op.Positions = null;
return success;
}

View File

@ -100,7 +100,7 @@ namespace MCGalaxy.Commands.Misc {
public override void Help(Player p) {
string name = Group.GetColoredName(LevelPermission.Operator);
Player.Message(p, "%T/Fly");
Player.Message(p, "%HCreates a grass platform underneath you that moves with you.");
Player.Message(p, "%HCreates a glass platform underneath you that moves with you.");
Player.Message(p, "%H May not work if you have high latency.");
Player.Message(p, "%H Cannot be used on maps which have -hax in their motd. " +
"(unless you are {0}%H+ and the motd has +ophax)", name);