fix allowed tags for fluid outputs (#2819)

This commit is contained in:
Darkere
2021-01-20 14:07:23 +01:00
committed by GitHub
parent c1d97cf49a
commit 16e084e7a7

View File

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