Checking slot id in System get doesn't make sense

pull/33/head
Pancakes 5 months ago
parent 81b316f4c9
commit 50d93a737f
No known key found for this signature in database
GPG Key ID: 5792877BFA27DC8F

@ -29,10 +29,6 @@ import (
func Get(uuid []byte, datatype, slot int) (any, error) { func Get(uuid []byte, datatype, slot int) (any, error) {
switch datatype { switch datatype {
case 0: // System case 0: // System
if slot != 0 {
return nil, fmt.Errorf("invalid slot id for system data")
}
system, err := db.ReadSystemSaveData(uuid) system, err := db.ReadSystemSaveData(uuid)
if err != nil { if err != nil {
return nil, err return nil, err

Loading…
Cancel
Save