Skip to content

Commit

Permalink
Make /replaceall use held block if no replace block provided
Browse files Browse the repository at this point in the history
  • Loading branch information
Goodlyay committed Jul 7, 2024
1 parent effa0c2 commit 0689e6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MCGalaxy/Commands/building/CmdReplaceAll.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 0689e6f

Please sign in to comment.