mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
more formatting
This commit is contained in:
parent
bd8809fcb0
commit
2bc54cdaf3
@ -467,7 +467,10 @@ 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 ? -1 : 1;
|
||||
const direction = this.root.keyMapper.getBinding(KEYMAPPINGS.placement.rotateInverseModifier)
|
||||
.pressed
|
||||
? -1
|
||||
: 1;
|
||||
let newIndex = (index + direction) % availableVariants.length;
|
||||
if (newIndex < 0) {
|
||||
newIndex += availableVariants.length;
|
||||
|
Loading…
Reference in New Issue
Block a user