Skip to content

Commit

Permalink
refactor: rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
yumetodo committed Nov 22, 2020
1 parent 86eec7f commit 2e8b02a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ public boolean matches(InventoryCrafting inv, World worldIn) {
return false;
}

private boolean checkMatch(InventoryCrafting inv, int i, int j, boolean p_77573_4_) {
private boolean checkMatch(InventoryCrafting inv, int i, int j, boolean invert) {
for (int k = 0; k < 3; ++k) {
for (int l = 0; l < 3; ++l) {
int i1 = k - i;
int j1 = l - j;
ItemStack itemstack = null;

if (i1 >= 0 && j1 >= 0 && i1 < this.recipeWidth && j1 < this.recipeHeight) {
if (p_77573_4_) {
if (invert) {
itemstack = this.recipeItems[this.recipeWidth - i1 - 1 + j1 * this.recipeWidth];
} else {
itemstack = this.recipeItems[i1 + j1 * this.recipeWidth];
Expand Down

0 comments on commit 2e8b02a

Please sign in to comment.