Fix random/clody brush showing 'only admin+ can draw with unknown' when providing arguments

Fixes #458, thanks goodlyay
This commit is contained in:
UnknownShadow200 2017-06-26 07:45:13 +10:00
parent b8dea9a093
commit 4a05e7794d

View File

@ -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;