mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
Using /abort should reset Transform (Thanks Empy), /fill shouldn't be affected by transform (thanks Goodlyay).
This commit is contained in:
parent
50c4e0809d
commit
f107cf2a34
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user