disallow cli colors from being used
This commit is contained in:
parent
50afa28174
commit
361cbb4991
|
@ -109,7 +109,7 @@ export async function drawByOffset(
|
||||||
// z out of bounds or weird stuff
|
// z out of bounds or weird stuff
|
||||||
throw new Error(4);
|
throw new Error(4);
|
||||||
}
|
}
|
||||||
if (color >= canvas.colors.length) {
|
if (color >= canvas.colors.length || color < canvas.cli) {
|
||||||
// color out of bounds
|
// color out of bounds
|
||||||
throw new Error(5);
|
throw new Error(5);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user