mirror of
https://github.com/JEFF-Media-GbR/ChestSort.git
synced 2025-01-08 09:27:39 +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
|
// Checks whether a the given itemname fits into this category and returns the line number. 0 means not found
|
||||||
short matches(String itemname) {
|
short matches(String itemname) {
|
||||||
|
|
||||||
|
// Very, very simple wildcard checks
|
||||||
|
for (TypeMatchPositionPair typeMatchPositionPair : typeMatches) {
|
||||||
|
|
||||||
boolean asteriskBefore = false;
|
boolean asteriskBefore = false;
|
||||||
boolean asteriskAfter = false;
|
boolean asteriskAfter = false;
|
||||||
|
|
||||||
// Very, very simple wildcard checks
|
|
||||||
for (TypeMatchPositionPair typeMatchPositionPair : typeMatches) {
|
|
||||||
String typeMatch = typeMatchPositionPair.getTypeMatch();
|
String typeMatch = typeMatchPositionPair.getTypeMatch();
|
||||||
if (typeMatch.startsWith("*")) {
|
if (typeMatch.startsWith("*")) {
|
||||||
asteriskBefore = true;
|
asteriskBefore = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user