Skip to content

Commit 4ad1b80

Browse files
committed
Fix flipped bwm anvil recipe
1 parent 95802b8 commit 4ad1b80

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • src/main/java/com/blamejared/compat/betterwithmods

src/main/java/com/blamejared/compat/betterwithmods/Anvil.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ public static Object[] toShapedAnvilObjects(IIngredient[][] ingredients) {
101101
else {
102102
ArrayList<Object> prep = new ArrayList<>();
103103
char chr = 'a';
104-
for(int y = 0; y < 4; y++) {
104+
for(int x = 0; x < 4; x++) {
105105
StringBuilder matrix = new StringBuilder();
106-
for(int x = 0; x < 4; x++) {
106+
for(int y = 0; y < 4; y++) {
107107
if(x < ingredients.length && ingredients[x] != null && y < ingredients[x].length) {
108108
if(ingredients[x][y] != null) {
109109
prep.add(chr);
@@ -116,7 +116,7 @@ public static Object[] toShapedAnvilObjects(IIngredient[][] ingredients) {
116116
}
117117
}
118118
if(matrix.length() > 0)
119-
prep.add(y, matrix.toString());
119+
prep.add(x, matrix.toString());
120120
}
121121
return prep.toArray();
122122
}

0 commit comments

Comments
 (0)