File tree Expand file tree Collapse file tree
src/main/java/com/blamejared/compat/betterwithmods Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments