mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-12-16 11:41:50 +00:00
Button fix when right click with placement building
This commit is contained in:
parent
a7a2aad2b6
commit
865c60d25a
@ -22,7 +22,9 @@ export class HUDLeverToggle extends BaseHUDPart {
|
||||
leverComp.toggled = !leverComp.toggled;
|
||||
return STOP_PROPAGATION;
|
||||
} else if (button === enumMouseButton.right) {
|
||||
if (!this.root.hud.parts.buildingPlacer.currentMetaBuilding) {
|
||||
this.root.logic.tryDeleteBuilding(contents);
|
||||
}
|
||||
return STOP_PROPAGATION;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user