mirror of
https://github.com/tobspr-games/shapez.io.git
synced 2026-01-16 14:20:50 -08:00
Fix crash when deleting buildings.
Can't check getHasDirectionLockAvailable() on a building you are currently deleting because it doesn't exist.
This commit is contained in:
parent
bbd50fdce9
commit
ddb5aae327
1 changed files with 1 additions and 0 deletions
|
|
@ -162,6 +162,7 @@ export class HUDBuildingPlacer extends BaseHUDPart {
|
|||
|
||||
// Check for direction lock
|
||||
if (
|
||||
metaBuilding &&
|
||||
metaBuilding.getHasDirectionLockAvailable() &&
|
||||
this.root.keyMapper.getBinding(KEYMAPPINGS.placement.lockBeltDirection).isCurrentlyPressed()
|
||||
) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue