mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Ignore a wrong NPE warning
Former-commit-id: 8379d2af46d6a5e4924f062b8780b828c33ea068
This commit is contained in:
1 parent
e303037504
commit
4cdc16b0c4
1 file changed
+4
-3
@@ -66,10 +66,11 @@ public class ItemMatcher {
|
||||
if(!matches(requireStack[i],givenStack[i])){
|
||||
return false;
|
||||
}
|
||||
if(requireStack[i]!=null&&givenStack[i]!=null){
|
||||
if(requireStack[i].getAmount()!=givenStack[i].getAmount()){
|
||||
//IDEA bug, ignore NPE tips
|
||||
//noinspection ConstantConditions
|
||||
if((requireStack[i] != null) && (givenStack[i] != null) &&
|
||||
(requireStack[i].getAmount() != givenStack[i].getAmount())){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user