Skip to content

Commit 266c1dc

Browse files
authored
Fix ItemStack Matcher (#362)
1 parent fdbb3dc commit 266c1dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/cleanroommc/groovyscript/compat/vanilla/ItemStackMixinExpansion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ default ItemStackMixinExpansion exactCopy() {
6666

6767
@Override
6868
default boolean test(ItemStack stack) {
69-
if (!OreDictionary.itemMatches(grs$getItemStack(), stack, false) && (grs$getMatcher() == null || !grs$getMatcher().test(stack))) {
69+
if (!OreDictionary.itemMatches(grs$getItemStack(), stack, false) || (grs$getMatcher() != null && !grs$getMatcher().test(stack))) {
7070
return false;
7171
}
7272
if (grs$getNbtMatcher() != null) {

0 commit comments

Comments
 (0)