Merge pull request #104 from JiggsNephron/patch-1

Update ChestSortCategory.java
This commit is contained in:
mfnalex 2021-02-17 21:07:57 +01:00 committed by GitHub
commit a044f35056
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -33,11 +33,12 @@ public class ChestSortCategory implements Comparable<ChestSortCategory>{
// Checks whether a the given itemname fits into this category and returns the line number. 0 means not found
short matches(String itemname) {
boolean asteriskBefore = false;
boolean asteriskAfter = false;
// Very, very simple wildcard checks
for (TypeMatchPositionPair typeMatchPositionPair : typeMatches) {
boolean asteriskBefore = false;
boolean asteriskAfter = false;
String typeMatch = typeMatchPositionPair.getTypeMatch();
if (typeMatch.startsWith("*")) {
asteriskBefore = true;