[Dev] Remove Version Checking (#55)

This commit is contained in:
Amani H. 2024-10-16 18:36:53 -04:00 committed by GitHub
parent ad43cccb41
commit b2aa37b2ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 8 deletions

View File

@ -21,10 +21,6 @@ func UpdateSystem(uuid []byte, data defs.SystemSaveData) error {
return fmt.Errorf("invalid system data")
}
if data.GameVersion != "1.0.4" {
return fmt.Errorf("client version out of date")
}
err := db.UpdateAccountStats(uuid, data.GameStats, data.VoucherCounts)
if err != nil {
return fmt.Errorf("failed to update account stats: %s", err)

View File

@ -38,10 +38,6 @@ func Update(uuid []byte, slot int, save any) error {
return fmt.Errorf("invalid system data")
}
if save.GameVersion != "1.0.4" {
return fmt.Errorf("client version out of date")
}
err = db.UpdateAccountStats(uuid, save.GameStats, save.VoucherCounts)
if err != nil {
return fmt.Errorf("failed to update account stats: %s", err)