fix allowed tags for fluid outputs (#2819)
This commit is contained in:
@@ -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 = () -> {
|
||||||
|
Reference in New Issue
Block a user