From cec9edebaacdcc1ba9882d7d5299a8077bbce174 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Thu, 5 Apr 2018 14:57:56 +1000 Subject: [PATCH] Fix /static fill 2d not recalculating direction each time --- MCGalaxy/Commands/building/CmdFill.cs | 5 ++++- MCGalaxy/Commands/other/CmdFly.cs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/MCGalaxy/Commands/building/CmdFill.cs b/MCGalaxy/Commands/building/CmdFill.cs index 3af4d7d2c..d1f074954 100644 --- a/MCGalaxy/Commands/building/CmdFill.cs +++ b/MCGalaxy/Commands/building/CmdFill.cs @@ -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; } diff --git a/MCGalaxy/Commands/other/CmdFly.cs b/MCGalaxy/Commands/other/CmdFly.cs index 909ea7c40..72906b4a9 100644 --- a/MCGalaxy/Commands/other/CmdFly.cs +++ b/MCGalaxy/Commands/other/CmdFly.cs @@ -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);