Do not rely on exceptions for control flow, when the

cell has no fuzzy mode.
This commit is contained in:
Sebastian Hartte
2020-07-17 19:51:59 +02:00
parent 1ac6d5d967
commit b8722dbbc0
@@ -118,6 +118,9 @@ public abstract class AbstractStorageCell<T extends IAEStack<T>> extends AEBaseI
@Override
public FuzzyMode getFuzzyMode(final ItemStack is) {
final String fz = is.getOrCreateTag().getString("FuzzyMode");
if (fz.isEmpty()) {
return FuzzyMode.IGNORE_ALL;
}
try {
return FuzzyMode.valueOf(fz);
} catch (final Throwable t) {