1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00

better formatting

This commit is contained in:
EmeraldBlock 2020-10-07 19:32:24 -05:00 committed by GitHub
parent 43f72e9f54
commit 262a5cc32f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -160,7 +160,8 @@ export class HUDBaseToolbar extends BaseHUDPart {
}
let newBuildingFound = false;
let direction = !this.root.keyMapper.getBinding(KEYMAPPINGS.placement.rotateInverseModifier).pressed * 2 + 1;
let direction =
!this.root.keyMapper.getBinding(KEYMAPPINGS.placement.rotateInverseModifier).pressed * 2 + 1;
let newIndex = this.lastSelectedIndex;
for (let i = 0; i < this.primaryBuildings.length; ++i, newIndex += direction) {
newIndex %= this.primaryBuildings.length;