mirror of
https://github.com/tobspr-games/shapez.io.git
synced 2026-01-15 05:41:10 -08:00
Fix savegame serialization
This commit is contained in:
parent
b248c4d1f5
commit
f667329572
1 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { Component } from "../component";
|
||||
import { BaseItem } from "../base_item";
|
||||
import { typeItemSingleton } from "../item_resolver";
|
||||
import { types } from "../../savegame/serialization";
|
||||
|
||||
export class BeltReaderComponent extends Component {
|
||||
static getId() {
|
||||
|
|
@ -13,7 +14,7 @@ export class BeltReaderComponent extends Component {
|
|||
|
||||
static getSchema() {
|
||||
return {
|
||||
lastItem: typeItemSingleton,
|
||||
lastItem: types.nullable(typeItemSingleton),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue