Skip to content

Commit

Permalink
[Dev] Remove Version Checking (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
xsn34kzx authored Oct 16, 2024
1 parent ad43ccc commit b2aa37b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions api/savedata/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 0 additions & 4 deletions api/savedata/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b2aa37b

Please sign in to comment.