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:
parent
262a5cc32f
commit
887d41bd06
@ -467,7 +467,8 @@ export class HUDBuildingPlacerLogic extends BaseHUDPart {
|
||||
index = 0;
|
||||
console.warn("Invalid variant selected:", this.currentVariant.get());
|
||||
}
|
||||
const direction = !this.root.keyMapper.getBinding(KEYMAPPINGS.placement.rotateInverseModifier).pressed * 2 + 1;
|
||||
const direction =
|
||||
!this.root.keyMapper.getBinding(KEYMAPPINGS.placement.rotateInverseModifier).pressed * 2 + 1;
|
||||
let newIndex = (index + direction) % availableVariants.length;
|
||||
if (newIndex < 0) {
|
||||
newIndex += availableVariants.length;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user