mirror of
https://github.com/GTNewHorizons/WanionLib.git
synced 2026-11-13 17:04:11 +00:00
small fix.
This commit is contained in:
1 parent
aebf6bd7f2
commit
b3ce33c324
2 files changed
+4
-4
No files matched your search
@@ -82,12 +82,12 @@ public final class RecipeHelper
|
||||
}
|
||||
}
|
||||
final Object[] shape = new Object[objects.length + thingToCharMap.size() * 2];
|
||||
for (int i = 0; i < squareRoot; i++)
|
||||
for (int i = 0; i < objects.length; i++)
|
||||
shape[i] = new String(almostTheShape[i]);
|
||||
int i = 0;
|
||||
for (final Object object : thingToCharMap.keySet()) {
|
||||
shape[squareRoot + (2 * i)] = thingToCharMap.get(object);
|
||||
shape[squareRoot + 1 + (2 * i++)] = (object instanceof Integer) ? keyStackMap.get(object) : object;
|
||||
shape[objects.length + (2 * i)] = thingToCharMap.get(object);
|
||||
shape[objects.length + 1 + (2 * i++)] = (object instanceof Integer) ? keyStackMap.get(object) : object;
|
||||
}
|
||||
return shape;
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ public abstract class AbstractRecipeRegistry<R extends IAdvancedRecipe>
|
||||
for (int x = 0; x < width; x++) {
|
||||
final int actualX = offSetX + x;
|
||||
if (matrix.getStackInSlot(actualY * root + actualX) != null) {
|
||||
recipeKey |= 1L << (y * root + x);
|
||||
recipeKey |= 1L << (width * y + x);
|
||||
recipeSize++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user