fix pippete throws on empty hand (#512)

This commit is contained in:
Dimava 2020-07-29 10:17:45 +03:00 committed by GitHub
parent baf5c83b34
commit 235c380de1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -344,6 +344,7 @@ export class HUDBuildingPlacerLogic extends BaseHUDPart {
// If the building we are picking is the same as the one we have, clear the cursor.
if (
this.currentMetaBuilding.get() &&
extracted.metaInstance.getId() === this.currentMetaBuilding.get().getId() &&
extracted.variant === this.currentVariant.get()
) {