mirror of
https://github.com/tobspr-games/shapez.io.git
synced 2026-01-17 06:40:58 -08:00
Fix crash on constant signal dialog
This commit is contained in:
parent
807deaa705
commit
707323591b
1 changed files with 5 additions and 0 deletions
|
|
@ -107,6 +107,11 @@ export class ConstantSignalSystem extends GameSystemWithFilter {
|
|||
* @returns {BaseItem}
|
||||
*/
|
||||
parseSignalCode(code) {
|
||||
if (!this.root || !this.root.shapeDefinitionMgr) {
|
||||
// Stale reference
|
||||
return null;
|
||||
}
|
||||
|
||||
code = trim(code);
|
||||
const codeLower = code.toLowerCase();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue