OSDN Git Service

化合台のバグを修正
authormozipi <mozipi@users.sourceforge.jp>
Wed, 2 Jan 2013 10:55:48 +0000 (19:55 +0900)
committermozipi <mozipi@users.sourceforge.jp>
Wed, 2 Jan 2013 10:55:48 +0000 (19:55 +0900)
common/chemicraft/system/ChemiCraftCraftingManager.java

index 1276452..c4a96f2 100644 (file)
@@ -66,6 +66,7 @@ public class ChemiCraftCraftingManager {
 
        public ItemStack getChemicalCombinationResult(ArrayList<String> atomsList, ArrayList<Integer> atomsAmountList){
                ChemiCraftAPI api = ChemiCraftAPI.getInstance();
+               recipeSize :
                for (int i = 0; i < api.getChemicalCombinationAtoms().size(); i++) {
                        FormulaPart[] var1 = new FormulaPart[atomsList.size()];
                        FormulaPart[] var2 = new FormulaPart[api.getChemicalCombinationAtoms().get(i).length];
@@ -76,11 +77,11 @@ public class ChemiCraftCraftingManager {
                                var2[j] = new FormulaPart(api.getChemicalCombinationAtoms().get(i)[j], api.getChemicalCombinationAmounts().get(i)[j]);
                        }
                        if (var1.length != var2.length) {
-                               continue;
+                               continue recipeSize;
                        }
                        for (int j = 0; j < var1.length; j++) {
                                if (!var1[j].equals(var2[j])) {
-                                       continue;
+                                       continue recipeSize;
                                }
                        }
                        return api.getChemicalCombinationResult().get(i);