mirror of
https://github.com/JEFF-Media-GbR/ChestSort.git
synced 2025-01-06 00:17:52 +01:00
Merge pull request #104 from JiggsNephron/patch-1
Update ChestSortCategory.java
This commit is contained in:
commit
a044f35056
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user