ME Gas Dupe Bug
RammyT opened this issue ยท 1 comments
Modpack version:
beta 0.1
Description:
Importing Gas from a Mekanism Gas Tank into the ME system, which has a Gas Storage Cell (only tested with a 4k cell), will import more gas than you lose from the tank.
The ME Gas Terminal would also missread the amount of gas in the system at times and I would get spammed with a problem message in the top right (crash log):
crash-2021-08-18_13.15.53-client.txt
Steps to reproduce:
I made two 4k Gas Storage Cells, put them both in a Cell Workbench and whitelisted (atleast I thought I did) Lithium for one of them and D-Fuel for the other. I then put both Cells in a Drive and started putting the gases in the system using a Gas Import Bus on the tanks with the gas I had. I made an ME Gas Terminal to easily see the gas and this is where it started acting up. The amount of gas in the gas tanks is only shown as a number and not with mB/B/kB so I imported the ~3000 D-Fuel I had and it showed in the Terminal as changing amounts from 120 mB to 30 B. I then imported the Litium I had, which was a lot more; ~330.000 and that quickly filled up the cells; both the one that had D-Fuel in it already and the empty one, even though I had whitelisted Litium in one and D-Fuel in the other. The Litium was also acting weird in the Terminal, showing different amounts stored, so I scraped the idea of using the gas cells and went to export the gas back into the tanks, and I somehow got close to double the amount of gas out that I put in. I tried importing only Lithium back in to see if it was a fluke but when I exported it again, I got almost double the amount I put in again. Looking at it again, it looks like when you import the gas, it imports more than you lose; i.e I just imported 21000 gas but the 4k cell is full with 32000 gas.
Expected behavior:
I would expect it to import the amount lost in the tank.
Additional context:
Add any other context about the problem here.
Disabled all ME Gas Storage Cells. (The ones currently in the world won't disappear yet, I've only disabled crafting.) And added a tooltip for all of them notifying the player about the issue, and telling them a workaround to use Gas Tanks + ME Gas Storage Buses if they want to store / use gases in the ME System.
It seems like Extra Cells has been abandoned, so I'm not too surprised about the bug: https://www.curseforge.com/minecraft/mc-mods/extracells2