diff --git a/api/savedata/update.go b/api/savedata/update.go index 1048ca5..8bbac9f 100644 --- a/api/savedata/update.go +++ b/api/savedata/update.go @@ -20,7 +20,6 @@ package savedata import ( "fmt" "log" - "os" "strconv" "github.com/klauspost/compress/zstd" @@ -37,12 +36,6 @@ func Update(uuid []byte, slot int, save any) error { log.Print("failed to update account last activity") } - // ideally should have been done at account creation - err = os.MkdirAll(fmt.Sprintf("userdata/%x", uuid), 0755) - if err != nil && !os.IsExist(err) { - return fmt.Errorf(fmt.Sprintf("failed to create userdata folder: %s", err)) - } - switch save := save.(type) { case defs.SystemSaveData: // System if save.TrainerId == 0 && save.SecretId == 0 {