mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Make belt readers store their last read item
This commit is contained in:
parent
9b8745535b
commit
3e0f42e47c
@ -1,5 +1,6 @@
|
||||
import { Component } from "../component";
|
||||
import { BaseItem } from "../base_item";
|
||||
import { typeItemSingleton } from "../item_resolver";
|
||||
|
||||
export class BeltReaderComponent extends Component {
|
||||
static getId() {
|
||||
@ -10,6 +11,12 @@ export class BeltReaderComponent extends Component {
|
||||
return new BeltReaderComponent();
|
||||
}
|
||||
|
||||
static getSchema() {
|
||||
return {
|
||||
lastItem: typeItemSingleton,
|
||||
};
|
||||
}
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user