mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Fix bug in generation of block labels
This commit is contained in:
parent
b28f5a6b71
commit
299485eb96
|
@ -315,7 +315,7 @@ public class StatementRenderer implements ExprVisitor, StatementVisitor {
|
|||
private String generateBlockId(int index) {
|
||||
int mappedIndex;
|
||||
while (blockIds.size() <= index) {
|
||||
mappedIndex = blockIndexMap.isEmpty() ? -1 : blockIndexMap.get(blockIds.size());
|
||||
mappedIndex = blockIndexMap.isEmpty() ? -1 : blockIndexMap.get(blockIds.size() - 1);
|
||||
mappedIndex++;
|
||||
while (RenderingUtil.KEYWORDS.contains(RenderingUtil.indexToId(mappedIndex))) {
|
||||
mappedIndex++;
|
||||
|
|
Loading…
Reference in New Issue
Block a user