mirror of
https://github.com/GTNewHorizons/Avaritia.git
synced 2026-11-19 11:49:35 +00:00
Fix alignment
This commit is contained in:
1 parent
1a10110033
commit
14db45ad0b
2 files changed
+2
-18
No files matched your search
@@ -46,15 +46,7 @@ public class ExtremeShapedRecipeHandler extends ShapedRecipeHandler
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -46,15 +46,7 @@ public class ExtremeShapelessRecipeHandler extends ShapelessRecipeHandler{
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user