Do not rely on exceptions for control flow, when the
cell has no fuzzy mode.
This commit is contained in:
@@ -118,6 +118,9 @@ public abstract class AbstractStorageCell<T extends IAEStack<T>> extends AEBaseI
|
|||||||
@Override
|
@Override
|
||||||
public FuzzyMode getFuzzyMode(final ItemStack is) {
|
public FuzzyMode getFuzzyMode(final ItemStack is) {
|
||||||
final String fz = is.getOrCreateTag().getString("FuzzyMode");
|
final String fz = is.getOrCreateTag().getString("FuzzyMode");
|
||||||
|
if (fz.isEmpty()) {
|
||||||
|
return FuzzyMode.IGNORE_ALL;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
return FuzzyMode.valueOf(fz);
|
return FuzzyMode.valueOf(fz);
|
||||||
} catch (final Throwable t) {
|
} catch (final Throwable t) {
|
||||||
|
|||||||
Reference in New Issue
Block a user