mirror of
https://github.com/GTNewHorizons/Applied-Energistics-2-Unofficial.git
synced 2026-10-26 14:25:20 +00:00
Fix unconfigured ore filter cards using hidden filters (#1477)
This commit is contained in:
1 parent
55566dd24c
commit
cdec4bac3a
3 files changed
+7
-6
No files matched your search
@@ -92,8 +92,10 @@ public class ItemViewCell extends AEBaseItem implements ICellWorkbenchItem {
|
||||
}
|
||||
}
|
||||
|
||||
if (hasOreFilter && !filter.isEmpty()) {
|
||||
myMergedList.addNewList(new OreFilteredList(filter), !hasInverter);
|
||||
if (hasOreFilter) {
|
||||
if (!filter.isEmpty()) {
|
||||
myMergedList.addNewList(new OreFilteredList(filter), !hasInverter);
|
||||
}
|
||||
} else {
|
||||
final IItemList priorityList = AEApi.instance().storage().createAEStackList();
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ public abstract class CellInventoryHandler<StackType extends IAEStack<StackType>
|
||||
setSticky(true);
|
||||
}
|
||||
|
||||
if (hasOreFilter && !filter.isEmpty()) {
|
||||
if (hasOreFilter) {
|
||||
setOreFilteredList(filter);
|
||||
} else {
|
||||
setPriorityList(hasFuzzy, config, fzMode);
|
||||
|
||||
@@ -674,10 +674,9 @@ public class PartStorageBus extends PartUpgradeable implements IStorageBus {
|
||||
this.handler.setSticky(true);
|
||||
}
|
||||
|
||||
final boolean useOreFilter = this.getInstalledUpgrades(Upgrades.ORE_FILTER) > 0
|
||||
&& !this.oreFilterString.isEmpty();
|
||||
final boolean hasOreFilter = this.getInstalledUpgrades(Upgrades.ORE_FILTER) > 0;
|
||||
|
||||
if (!useOreFilter) {
|
||||
if (!hasOreFilter) {
|
||||
final IItemList priorityList = getItemList();
|
||||
|
||||
final int slotsToUse = 18 + this.getInstalledUpgrades(Upgrades.CAPACITY) * 9;
|
||||
|
||||
Reference in new issue
Block a user