minor fix to shape cycler's nonexistent shape handling

This commit is contained in:
An Orbit 2024-05-20 11:27:39 -04:00 committed by GitHub
parent 22cc848d9e
commit f44b5f97d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 1 deletions

View File

@ -3376,7 +3376,6 @@ color1 and color2 spread through striped paint like dye does with itself. <u>col
//mod: shift+8 to change cursor shape
if (e.keyCode == 56 && shiftDown) {
var currentShapeIndex = shapeOrder.indexOf(currentShape);
if(currentShapeIndex < 0) { currentShapeIndex = 0 };
currentShape = shapeOrder[(currentShapeIndex + 1) % shapeOrder.length];
logMessage(`Current shape: ${currentShape}`)
}