Fixes new modes not being considered JEI modes.

This commit is contained in:
yueh
2017-10-14 14:39:05 +02:00
parent 4f07b63b13
commit 58e96aa3de
2 changed files with 3 additions and 8 deletions
+2 -6
View File
@@ -344,12 +344,8 @@ public class Platform
return true;
}
if( e == SearchBoxMode.JEI_AUTOSEARCH && !Integrations.jei().isEnabled() )
{
return true;
}
if( e == SearchBoxMode.JEI_MANUAL_SEARCH && !Integrations.jei().isEnabled() )
final boolean isJEI = e == SearchBoxMode.JEI_AUTOSEARCH || e == SearchBoxMode.JEI_AUTOSEARCH_KEEP || e == SearchBoxMode.JEI_MANUAL_SEARCH || e == SearchBoxMode.JEI_MANUAL_SEARCH_KEEP;
if( isJEI && !Integrations.jei().isEnabled() )
{
return true;
}