Fixed Filters not persisting correctly in Wireless Grid and Wireless Crafting Monitor

This commit is contained in:
raoulvdberge
2017-06-16 18:50:10 +02:00
parent 1d4c77a64f
commit fcac565f1d

View File

@@ -173,6 +173,11 @@ public class ContainerGrid extends ContainerBase {
detectAndSendChanges();
// For some reason it doesn't detect when moving the filter from filter inventory to player inventory...
if (slotIndex < 4) {
grid.getFilter().setStackInSlot(slotIndex, ItemStack.EMPTY);
}
return ItemStack.EMPTY;
}
} else if ((grid.getType() == GridType.PATTERN && stack.getItem() == RSItems.PATTERN) || (grid instanceof IPortableGrid && stack.getItem() instanceof IStorageDiskProvider)) {