Merge remote-tracking branch 'origin/master' into master

This commit is contained in:
mfnalex 2021-02-17 21:11:28 +01:00
commit 150a237ec1
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;