really small fix that was messing whit a lot of things.

This commit is contained in:
WanionCane committed 2016-11-07 17:06:48 -02:00
1 parent ac040f7157
commit 711da7c7e5
1 file changed
+4 -4
@@ -44,9 +44,9 @@ public final class RecipeHelper
if (key instanceof Integer)
keyStackMap.put((Integer) key, (ItemStack) objects[index]);
if (thingToCharMap.containsKey(key))
almostTheShape[x][y] = thingToCharMap.get(key);
almostTheShape[y][x] = thingToCharMap.get(key);
else
thingToCharMap.put(key, almostTheShape[x][y] = (char) f++);
thingToCharMap.put(key, almostTheShape[y][x] = (char) f++);
}
}
final Object[] shape = new Object[squareRoot + thingToCharMap.size() * 2];
@@ -76,9 +76,9 @@ public final class RecipeHelper
if (key instanceof Integer)
keyStackMap.put((Integer) key, (ItemStack) inputArray[x]);
if (thingToCharMap.containsKey(key))
almostTheShape[x][y] = thingToCharMap.get(key);
almostTheShape[y][x] = thingToCharMap.get(key);
else
thingToCharMap.put(key, almostTheShape[x][y] = (char) f++);
thingToCharMap.put(key, almostTheShape[y][x] = (char) f++);
}
}
final Object[] shape = new Object[objects.length + thingToCharMap.size() * 2];