Skip to content

Commit

Permalink
Merge pull request #19 from GTNewHorizons/alignment
Browse files Browse the repository at this point in the history
Fix alignment
  • Loading branch information
Dream-Master authored May 25, 2022
2 parents 1a10110 + 14db45a commit daa3227
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,7 @@ public void setIngredients(int width, int height, Object[] items)
{
continue;
}
int ex = 3 + x * 18;
int wy = 3 + y * 18;
if(wy == 129){
if(ex == 3 || ex == 129)
ex -= 1;
else if(ex == 21 || ex == 147)
ex += 1;
}
PositionedStack stack = new PositionedStack(items[y * width + x], ex, wy);
PositionedStack stack = new PositionedStack(items[y * width + x], 3 + x * 18, 3 + y * 18);
stack.setMaxSize(1);
this.ingredients.add(stack);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,7 @@ public CachedExtremeShapelessRecipe(List<?> input, ItemStack output) {
public void setIngredients(List<?> items) {
ingredients.clear();
for (int ingred = 0; ingred < items.size(); ingred++) {
int ex = 3 + (ingred % 9) * 18;
int wy = 3 + (ingred / 9) * 18;
if(wy == 129){
if(ex == 3 || ex == 129)
ex -= 1;
else if(ex == 21 || ex == 147)
ex += 1;
}
PositionedStack stack = new PositionedStack(items.get(ingred), ex, wy);
PositionedStack stack = new PositionedStack(items.get(ingred), 3 + (ingred % 9) * 18, 3 + (ingred / 9) * 18);
stack.setMaxSize(1);
ingredients.add(stack);
}
Expand Down

0 comments on commit daa3227

Please sign in to comment.