mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 20:16:36 -04:00
Fix /static fill 2d not recalculating direction each time
This commit is contained in:
parent
c33862b400
commit
cec9edebaa
@ -66,7 +66,9 @@ namespace MCGalaxy.Commands.Building {
|
|||||||
BlockID old = p.level.GetBlock(x, y, z);
|
BlockID old = p.level.GetBlock(x, y, z);
|
||||||
if (!CommandParser.IsBlockAllowed(p, "fill over", old)) return false;
|
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;
|
FillDrawOp op = (FillDrawOp)dArgs.Op;
|
||||||
op.Positions = FillDrawOp.FloodFill(p, p.level.PosToInt(x, y, z), old, dArgs.Mode);
|
op.Positions = FillDrawOp.FloodFill(p, p.level.PosToInt(x, y, z), old, dArgs.Mode);
|
||||||
int count = op.Positions.Count;
|
int count = op.Positions.Count;
|
||||||
@ -79,6 +81,7 @@ namespace MCGalaxy.Commands.Building {
|
|||||||
success = base.DoDraw(p, marks, state, block);
|
success = base.DoDraw(p, marks, state, block);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (is2D) dArgs.Mode = DrawMode.volcano;
|
||||||
op.Positions = null;
|
op.Positions = null;
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
@ -100,7 +100,7 @@ namespace MCGalaxy.Commands.Misc {
|
|||||||
public override void Help(Player p) {
|
public override void Help(Player p) {
|
||||||
string name = Group.GetColoredName(LevelPermission.Operator);
|
string name = Group.GetColoredName(LevelPermission.Operator);
|
||||||
Player.Message(p, "%T/Fly");
|
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 May not work if you have high latency.");
|
||||||
Player.Message(p, "%H Cannot be used on maps which have -hax in their motd. " +
|
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);
|
"(unless you are {0}%H+ and the motd has +ophax)", name);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user