fix being unable to set filter in grid output slots fixes #2779 #2742 (#2785)

* fix being unable to set filter in grid output slots fixes #2779 #2742

* cache filled disks fixes #2771

* Revert "cache filled disks fixes #2771"

This reverts commit 7d3910c7
This commit is contained in:
Darkere
2021-01-02 11:22:05 +01:00
committed by GitHub
parent 7531bd2d18
commit 8e962178e0

View File

@@ -63,7 +63,8 @@ public class SetFilterSlotMessage {
// Prevent the grid crafting matrix inventory listener from resetting the list.
if (container instanceof GridContainer) {
IGrid grid = ((GridContainer) container).getGrid();
if (grid instanceof GridNetworkNode) {
//exclude output slots
if (grid instanceof GridNetworkNode && slot.getSlotIndex() < ((GridNetworkNode) grid).getAllowedTagList().getAllowedItemTags().size()) {
Set<ResourceLocation> list = new HashSet<>(((GridNetworkNode) grid).getAllowedTagList().getAllowedItemTags().get(slot.getSlotIndex()));
postAction = () -> {