mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
Removed number check for savegameInterfaces
This commit is contained in:
parent
fa7865d787
commit
9d40d17731
@ -318,7 +318,7 @@ export class ReadWriteProxy {
|
||||
if (!data) {
|
||||
return ExplainedResult.bad("Data is empty");
|
||||
}
|
||||
if (!savegameInterfaces[data.version] && (!Number.isInteger(data.version) || data.version < 0)) {
|
||||
if (!savegameInterfaces[data.version]) {
|
||||
return ExplainedResult.bad(
|
||||
`Data has invalid version: ${data.version} (expected ${this.getCurrentVersion()})`
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user