mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-02-22 08:31:30 +08:00
Checking slot id in System get doesn't make sense
This commit is contained in:
parent
81b316f4c9
commit
50d93a737f
@ -29,10 +29,6 @@ import (
|
||||
func Get(uuid []byte, datatype, slot int) (any, error) {
|
||||
switch datatype {
|
||||
case 0: // System
|
||||
if slot != 0 {
|
||||
return nil, fmt.Errorf("invalid slot id for system data")
|
||||
}
|
||||
|
||||
system, err := db.ReadSystemSaveData(uuid)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Loading…
x
Reference in New Issue
Block a user