From 0689e6fd9be5b9342878a748baa893759c2f4c41 Mon Sep 17 00:00:00 2001 From: Goodlyay Date: Sun, 7 Jul 2024 01:05:26 -0700 Subject: [PATCH] Make /replaceall use held block if no replace block provided --- MCGalaxy/Commands/building/CmdReplaceAll.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MCGalaxy/Commands/building/CmdReplaceAll.cs b/MCGalaxy/Commands/building/CmdReplaceAll.cs index d800a32ee..08b165436 100644 --- a/MCGalaxy/Commands/building/CmdReplaceAll.cs +++ b/MCGalaxy/Commands/building/CmdReplaceAll.cs @@ -31,7 +31,7 @@ public sealed class CmdReplaceAll : Command2 { public override LevelPermission defaultRank { get { return LevelPermission.Admin; } } public override void Use(Player p, string message, CommandData data) { - BrushArgs args = new BrushArgs(p, message, Block.Air); + BrushArgs args = new BrushArgs(p, message, p.GetHeldBlock()); Brush brush = BrushFactory.Find("Replace").Construct(args); if (brush == null) return;