Sfoglia il codice sorgente

Don't try to fit if full

Reddo 5 anni fa
parent
commit
eaddca1e26
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      app/World/Classes/ContentPicker/ContentMolecule.ts

+ 4 - 0
app/World/Classes/ContentPicker/ContentMolecule.ts

@@ -43,6 +43,10 @@ class ContentMolecule {
                 missingAtoms = cachedAtoms;
                 chosenOnes.push(k);
             }
+
+            if (missingAtoms.length == 0) {
+                break;
+            }
         }
 
         if (missingAtoms.length == 0) {