[Dev] Remove Version Checking (#55)

pull/50/merge
Amani H. 1 month ago committed by GitHub
parent ad43cccb41
commit b2aa37b2ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -21,10 +21,6 @@ func UpdateSystem(uuid []byte, data defs.SystemSaveData) error {
return fmt.Errorf("invalid system data") 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) err := db.UpdateAccountStats(uuid, data.GameStats, data.VoucherCounts)
if err != nil { if err != nil {
return fmt.Errorf("failed to update account stats: %s", err) return fmt.Errorf("failed to update account stats: %s", err)

@ -38,10 +38,6 @@ func Update(uuid []byte, slot int, save any) error {
return fmt.Errorf("invalid system data") 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) err = db.UpdateAccountStats(uuid, save.GameStats, save.VoucherCounts)
if err != nil { if err != nil {
return fmt.Errorf("failed to update account stats: %s", err) return fmt.Errorf("failed to update account stats: %s", err)

Loading…
Cancel
Save