Fix savegame serialization
This commit is contained in:
parent
b248c4d1f5
commit
f667329572
|
@ -1,6 +1,7 @@
|
||||||
import { Component } from "../component";
|
import { Component } from "../component";
|
||||||
import { BaseItem } from "../base_item";
|
import { BaseItem } from "../base_item";
|
||||||
import { typeItemSingleton } from "../item_resolver";
|
import { typeItemSingleton } from "../item_resolver";
|
||||||
|
import { types } from "../../savegame/serialization";
|
||||||
|
|
||||||
export class BeltReaderComponent extends Component {
|
export class BeltReaderComponent extends Component {
|
||||||
static getId() {
|
static getId() {
|
||||||
|
@ -13,7 +14,7 @@ export class BeltReaderComponent extends Component {
|
||||||
|
|
||||||
static getSchema() {
|
static getSchema() {
|
||||||
return {
|
return {
|
||||||
lastItem: typeItemSingleton,
|
lastItem: types.nullable(typeItemSingleton),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue