1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Fix bug when saving underground belts

This commit is contained in:
tobspr
2020-05-15 11:08:49 +02:00
parent c3e0cb5a46
commit 4e97ec281e
2 changed files with 3 additions and 1 deletions

View File

@@ -1079,6 +1079,8 @@ export class TypePair extends BaseDataType {
*/
constructor(type1, type2) {
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.type2 = type2;
}