fix if color not found

This commit is contained in:
mertoalex 2024-04-23 16:04:40 +03:00
parent 221403c7d4
commit f38a197e8c
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ func checkValid(something any) bool {
}
func checkUserDataValid(userdata map[string]interface{}) {
for _, data := range []string{"username"} {
for _, data := range []string{"username", "color"} {
if !checkValid(userdata[data]) {
panic(fmt.Sprint("\"", data, "\" isn't defined in userdata:\n", userdata))
}