Added Sort By Inventory Tweaks.

NEI and Invtweaks options are now hidden without the supporting mod.
This commit is contained in:
AlgorithmX2
2014-02-27 01:10:11 -06:00
parent b219c950f4
commit 9f0f84a93f
9 changed files with 94 additions and 30 deletions
+3 -2
View File
@@ -132,11 +132,12 @@ public class ItemRepo
Enum SortDir = sortSrc.getSortDir();
ItemSorters.Direction = (appeng.api.config.SortDir) SortDir;
ItemSorters.init();
if ( SortBy == SortOrder.AMOUNT )
Collections.sort( view, ItemSorters.ConfigBased_SortBySize );
// else if ( SortBy == SortOrder.MOD )
// Collections.sort( view, ItemSorters.ConfigBased_SortByMod );
else if ( SortBy == SortOrder.INVTWEAKS )
Collections.sort( view, ItemSorters.ConfigBased_SortByInvTweaks );
else
Collections.sort( view, ItemSorters.ConfigBased_SortByName );