From 4a05e7794d335be8601e5dda137c5bc6370bce42 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Mon, 26 Jun 2017 07:45:13 +1000 Subject: [PATCH] Fix random/clody brush showing 'only admin+ can draw with unknown' when providing arguments Fixes #458, thanks goodlyay --- MCGalaxy/Drawing/BrushFactories/FrequencyBrushes.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MCGalaxy/Drawing/BrushFactories/FrequencyBrushes.cs b/MCGalaxy/Drawing/BrushFactories/FrequencyBrushes.cs index 3a602c7b3..826c1cb6b 100644 --- a/MCGalaxy/Drawing/BrushFactories/FrequencyBrushes.cs +++ b/MCGalaxy/Drawing/BrushFactories/FrequencyBrushes.cs @@ -33,7 +33,7 @@ namespace MCGalaxy.Drawing.Brushes { GetRaw(parts, filter, args, out blocks, out count); // check if we're allowed to place the held block - if (blocks[0].IsInvalid && !CommandParser.IsBlockAllowed(p, "draw with", blocks[0])) return null; + if (!blocks[0].IsInvalid && !CommandParser.IsBlockAllowed(p, "draw with", blocks[0])) return null; for (int i = 0, j = 0; i < parts.Length; i++ ) { if (parts[i] == "") continue;