Renew Replenisher#435
Conversation
|
GTNewHorizons/Applied-Energistics-2-Unofficial#1317 Also, create a new class instead of using VirtualMEPatternSlot. |
Kogepan229
left a comment
There was a problem hiding this comment.
Shouldn't onChangeInventory set needReCountStoredItems to true, and onFluidInventoryChanged set needReCountStoredFluids to true?
|
@Kogepan229 I think i cant trust onChange calls backs, so on start of re-stock we calculate current storage, needReCount* need only for prevent re count for next slot in current re stock. |
If so, there is a problem. At the end of fletchFluids(), needReCountStoredFluids is set to true, but if getFreeBytes() is called later inside fletchItems(), the fluid count will be recalculated and the flag will be set back to false. |
|
i see, i moved reset to end of tick request |
|
@Kogepan229 Done, but i would like also use new "zero void" module for this. When it(module) will be merged ofc. |
Use new slots.
Count storage on update. Use I/O operations log not reliable.