forked from gnawmon/ballsoffline
fix if color not found
This commit is contained in:
parent
221403c7d4
commit
f38a197e8c
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue