Most (or all?) AE2 blocks with inventories are not updating attached comparators if the inventory is changed through any automation.
This only happens with a forced update through an adjacent block.
Which automation? AE2 automation? I'm pretty sure that comparators update when you call "TileEntity.markDirty()" or whatever its called.
Currently looking through the blocks. Looks like it does not work with at least with
Cannot really test the ME chest.
It looks like it is related to AE2 automation. Simple setup with an interface as buffer and a storage bus facing one of the AE2 blocks. If I use a hopper to insert any items it works just fine.
Already found out, that calling TileEntity.markDirty() in onChangeInventory() it will solve it.
The question is more, how could this affect the performance.
It is probably fine for things like the IO Ports or Grindstone, but chaning it for an interface might have a huge impact.
Yes, sadly markDirty is pretty expensive, but it should be called without it the chunk won't be saved and item loss can occur as well. I honestly thought I already touched on this but it may have regressed or maybe I just thought I did.
Could this no also enable a dupe bug? @FireBall1725 mentioned something about one with a heavily loaded ME system.
I have one case in mind, but cannot check it until tomorrow.