mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 04:32:50 -04:00
Fix random/clody brush showing 'only admin+ can draw with unknown' when providing arguments
Fixes #458, thanks goodlyay
This commit is contained in:
parent
b8dea9a093
commit
4a05e7794d
@ -33,7 +33,7 @@ namespace MCGalaxy.Drawing.Brushes {
|
|||||||
GetRaw(parts, filter, args, out blocks, out count);
|
GetRaw(parts, filter, args, out blocks, out count);
|
||||||
|
|
||||||
// check if we're allowed to place the held block
|
// 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++ ) {
|
for (int i = 0, j = 0; i < parts.Length; i++ ) {
|
||||||
if (parts[i] == "") continue;
|
if (parts[i] == "") continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user