mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-16 02:04:59 +00:00
Add back search mode settings and add ingame setting for prefixes
This commit is contained in:
1 parent
87f71b6ef9
commit
9feb9d72ce
9 files changed
+337
-59
No files matched your search
@@ -29,8 +29,8 @@ public class SearchTokenParser {
|
||||
PREFIX,
|
||||
NEVER;
|
||||
|
||||
public static SearchMode fromString(String value) {
|
||||
return switch (value.length()) {
|
||||
public static SearchMode fromInt(int value) {
|
||||
return switch (value) {
|
||||
case 0 -> ALWAYS;
|
||||
case 1 -> PREFIX;
|
||||
default -> NEVER;
|
||||
|
||||
Reference in new issue
Block a user