This commit is contained in:
Anuken
2020-07-31 16:29:37 -04:00
parent bb3b4d4415
commit d658367be7
4 changed files with 4 additions and 4 deletions

View File

@@ -160,7 +160,7 @@ public class PlacementFragment extends Fragment{
blockSelectEnd = true;
}
Seq<Block> blocks = getByCategory(currentCategory);
if(!unlocked(blocks.get(i))) return true;
if(i >= blocks.size || !unlocked(blocks.get(i))) return true;
input.block = (i < blocks.size) ? blocks.get(i) : null;
selectedBlocks.put(currentCategory, input.block);
blockSelectSeqMillis = Time.millis();