mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
information
This commit is contained in:
parent
a283541787
commit
ce6251bf47
@ -468,8 +468,7 @@ export class HUDBuildingPlacerLogic extends BaseHUDPart {
|
|||||||
index = 0;
|
index = 0;
|
||||||
console.warn("Invalid variant selected:", this.currentVariant.get());
|
console.warn("Invalid variant selected:", this.currentVariant.get());
|
||||||
}
|
}
|
||||||
const direction = this.root.keyMapper.getBinding(KEYMAPPINGS.placement.backwardsModifier)
|
const direction = this.root.keyMapper.getBinding(KEYMAPPINGS.placement.backwardsModifier).pressed
|
||||||
.pressed
|
|
||||||
? -1
|
? -1
|
||||||
: 1;
|
: 1;
|
||||||
let newIndex = safeModulo(index + direction, availableVariants.length);
|
let newIndex = safeModulo(index + direction, availableVariants.length);
|
||||||
|
Loading…
Reference in New Issue
Block a user