mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Fix bug when saving underground belts
This commit is contained in:
parent
c3e0cb5a46
commit
4e97ec281e
@ -18,7 +18,7 @@ export class UndergroundBeltComponent extends Component {
|
|||||||
static getSchema() {
|
static getSchema() {
|
||||||
return {
|
return {
|
||||||
mode: types.enum(enumUndergroundBeltMode),
|
mode: types.enum(enumUndergroundBeltMode),
|
||||||
pendingItems: types.array(types.pair(types.obj(gItemRegistry), types.number)),
|
pendingItems: types.array(types.pair(types.obj(gItemRegistry), types.ufloat)),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1079,6 +1079,8 @@ export class TypePair extends BaseDataType {
|
|||||||
*/
|
*/
|
||||||
constructor(type1, type2) {
|
constructor(type1, type2) {
|
||||||
super();
|
super();
|
||||||
|
assert(type1 && type1 instanceof BaseDataType, "bad first type given for pair");
|
||||||
|
assert(type2 && type2 instanceof BaseDataType, "bad second type given for pair");
|
||||||
this.type1 = type1;
|
this.type1 = type1;
|
||||||
this.type2 = type2;
|
this.type2 = type2;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user