attempt to fix fluid interfaces capacity desync

This commit is contained in:
PrototypeTrousers
2022-10-18 20:51:52 -03:00
parent b443f1ce57
commit 15a1e8f150
@@ -528,6 +528,7 @@ public class DualityFluidInterface implements IGridTickable, IStorageMonitorable
this.tanks.readFromNBT(data, "storage");
this.priority = data.getInteger("priority");
this.upgrades.readFromNBT(data, "upgrades");
this.tanks.setCapacity((int) (Math.pow(4, this.getInstalledUpgrades(Upgrades.CAPACITY) + 1) * Fluid.BUCKET_VOLUME));
this.readConfig();
}