Fix crash

This commit is contained in:
tobspr 2020-06-16 20:13:46 +02:00
parent bbd50fdce9
commit 736e5fb432
1 changed files with 1 additions and 0 deletions

View File

@ -162,6 +162,7 @@ export class HUDBuildingPlacer extends BaseHUDPart {
// Check for direction lock // Check for direction lock
if ( if (
metaBuilding &&
metaBuilding.getHasDirectionLockAvailable() && metaBuilding.getHasDirectionLockAvailable() &&
this.root.keyMapper.getBinding(KEYMAPPINGS.placement.lockBeltDirection).isCurrentlyPressed() this.root.keyMapper.getBinding(KEYMAPPINGS.placement.lockBeltDirection).isCurrentlyPressed()
) { ) {