From bac207cacb6ca24184d4c2820dc4c4b09a4654fc Mon Sep 17 00:00:00 2001 From: slprime <31038811+slprime@users.noreply.github.com> Date: Wed, 5 Nov 2025 00:10:32 +0200 Subject: [PATCH] Change item slot size in GuiRecipe (#789) --- src/main/java/codechicken/nei/PositionedStack.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/codechicken/nei/PositionedStack.java b/src/main/java/codechicken/nei/PositionedStack.java index c85d545c..eab812ad 100644 --- a/src/main/java/codechicken/nei/PositionedStack.java +++ b/src/main/java/codechicken/nei/PositionedStack.java @@ -146,7 +146,7 @@ public class PositionedStack { } public boolean contains(int mx, int my) { - return this.relx <= mx && this.rely <= my && this.relx + 16 >= mx && this.rely + 16 >= my; + return mx >= this.relx - 1 && mx < this.relx + 17 && my >= this.rely - 1 && my < this.rely + 17; } public boolean contains(ItemStack ingredient) {