mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-06 01:24:04 +00:00
Fix crash when Show Hints setting is off
This commit is contained in:
parent
b2f6e2956c
commit
864c20ce26
@ -1,4 +1,9 @@
|
|||||||
export const CHANGELOG = [
|
export const CHANGELOG = [
|
||||||
|
{
|
||||||
|
version: "1.1.1",
|
||||||
|
date: "28.05.2020",
|
||||||
|
entries: ["Fix crash when 'Show Hints' setting was turned on"],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
version: "1.1.0",
|
version: "1.1.0",
|
||||||
date: "28.05.2020",
|
date: "28.05.2020",
|
||||||
|
@ -116,7 +116,10 @@ export class HUDWaypoints extends BaseHUDPart {
|
|||||||
})[1];
|
})[1];
|
||||||
|
|
||||||
this.root.camera.downPreHandler.add(this.onMouseDown, this);
|
this.root.camera.downPreHandler.add(this.onMouseDown, this);
|
||||||
this.domAttach = new DynamicDomAttach(this.root, this.hintElement);
|
|
||||||
|
if (this.hintElement) {
|
||||||
|
this.domAttach = new DynamicDomAttach(this.root, this.hintElement);
|
||||||
|
}
|
||||||
|
|
||||||
this.root.keyMapper.getBinding(KEYMAPPINGS.ingame.createMarker).add(this.requestCreateMarker, this);
|
this.root.keyMapper.getBinding(KEYMAPPINGS.ingame.createMarker).add(this.requestCreateMarker, this);
|
||||||
|
|
||||||
@ -168,7 +171,9 @@ export class HUDWaypoints extends BaseHUDPart {
|
|||||||
}
|
}
|
||||||
|
|
||||||
update() {
|
update() {
|
||||||
this.domAttach.update(this.root.camera.getIsMapOverlayActive());
|
if (this.domAttach) {
|
||||||
|
this.domAttach.update(this.root.camera.getIsMapOverlayActive());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
findCurrentIntersectedWaypoint() {
|
findCurrentIntersectedWaypoint() {
|
||||||
|
Loading…
Reference in New Issue
Block a user