GabrielOlvH / Industrial-Revolution

An Industrial mod made for Fabric.
Apache License 2.0
193 stars 56 forks source link

[BUG] Lazuli Flux Energy Storage calls serverside method after clientside transaction commit #536

Open Linguardium opened 1 year ago

Linguardium commented 1 year ago

https://github.com/GabrielOlvH/Industrial-Revolution/blob/012a1b83f39ab50a10d03ef3c1a8e2651e517053/src/main/kotlin/me/steven/indrev/blockentities/storage/LazuliFluxContainerBlockEntity.kt#L105

update is called in cases where clientside transfer has been committed which causes sync to be called on clientside. Energy API 2.3.0 allows clientside querying and thus is provided a storage that can be interacted with clientside