File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
common/src/main/java/dev/terminalmc/clientsort/network/handler Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 33## 2.0.0-beta.21
44
55- Increased interaction interval limit to 1000ms
6+ - Fixed item type validator also checking stack size
67
78## 2.0.0-beta.20
89
Original file line number Diff line number Diff line change @@ -132,9 +132,10 @@ public static void validate(
132132 }
133133
134134 if (log || serverOptions ().validateItemType ) {
135- boolean mismatchedTypes = notEqual (expected , actual );
136- if (mismatchedTypes )
137- invalid = true ;
135+ if (!expected .isEmpty () && !actual .isEmpty ()) {
136+ if (!ItemStack .isSameItemSameComponents (expected , actual ))
137+ invalid = true ;
138+ }
138139 }
139140
140141 if (log || serverOptions ().validateStackSize ) {
@@ -193,9 +194,4 @@ public static void validate(
193194
194195 return menu ;
195196 }
196-
197- public static boolean notEqual (ItemStack a , ItemStack b ) {
198- return !ItemStack .isSameItemSameComponents (a , b )
199- || a .getCount () != b .getCount ();
200- }
201197}
You can’t perform that action at this time.
0 commit comments