Fixed Filters not persisting correctly in Wireless Grid and Wireless Crafting Monitor
This commit is contained in:
@@ -173,6 +173,11 @@ public class ContainerGrid extends ContainerBase {
|
|||||||
|
|
||||||
detectAndSendChanges();
|
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;
|
return ItemStack.EMPTY;
|
||||||
}
|
}
|
||||||
} else if ((grid.getType() == GridType.PATTERN && stack.getItem() == RSItems.PATTERN) || (grid instanceof IPortableGrid && stack.getItem() instanceof IStorageDiskProvider)) {
|
} else if ((grid.getType() == GridType.PATTERN && stack.getItem() == RSItems.PATTERN) || (grid instanceof IPortableGrid && stack.getItem() instanceof IStorageDiskProvider)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user