Using /abort should reset Transform (Thanks Empy), /fill shouldn't be affected by transform (thanks Goodlyay).

This commit is contained in:
UnknownShadow200 2016-08-27 08:01:59 +10:00
parent 50c4e0809d
commit f107cf2a34
2 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,8 @@
or implied. See the Licenses for the specific language governing
permissions and limitations under the Licenses.
*/
using MCGalaxy.Drawing.Transforms;
namespace MCGalaxy.Commands.Building {
public sealed class CmdAbort : Command {
public override string name { get { return "abort"; } }
@ -37,6 +39,7 @@ namespace MCGalaxy.Commands.Building {
p.isFlying = false;
p.BrushName = "normal";
p.DefaultBrushArgs = "";
p.Transform = NoTransform.Instance;
lock (p.level.queueLock)
p.level.blockqueue.RemoveAll(b => (int)((b >> 9) & Player.SessionIDMask) == p.SessionID);

View File

@ -26,6 +26,7 @@ namespace MCGalaxy.Drawing.Ops {
public List<int> Positions;
public override string Name { get { return "Fill"; } }
public override bool AffectedByTransform { get { return false; } }
public override long GetBlocksAffected(Level lvl, Vec3S32[] marks) {
return Positions.Count;