SlimeKnights / TinkersConstruct

Tinker a little, build a little, tinker a little more...
MIT License
1.22k stars 771 forks source link

Tank modifier draws excessive fluid while interacting with fluid tanks in other mods #5257

Open EtSH-C2H6S opened 2 weeks ago

EtSH-C2H6S commented 2 weeks ago

Minecraft Version

1.19.2

Forge Version

43.4.0

Mantle Version

1.10.36

Tinkers' Construct Version

3.8.3.39

Describe your issue

When interacting with fluid tanks in Mekanism mod using tools with tank modifier, the fluid will be totally drained EVEN IF the tank holds more fluid than fluid capacity of the tool. Same situation also happens with fluid tanks in Industrial Foregoing.

https://github.com/user-attachments/assets/0bc1a016-6316-4e8e-a72c-c6db5ca04002

Crash Report

No response

Other mods

Mekanism -10.3.9 Just Enough Items -11.6.0.1019 TConJEI -1.2.1

Tried reproducing with just Tinkers?

No

Performance Enchancers

None of the above

Searched for known issues?

Searched open issues, Searched closed issues, Checked the FAQ, Checked the in game books

KnightMiner commented 4 days ago

Yeah, I need more context on this one. The tools work perfectly fine with our tanks, and its the tank that implements interaction behavior on right click.

Do you also have this issue with seared tanks right clicking on the other mod's fluid tank? Also try with copper cans.

EtSH-C2H6S commented 4 days ago

Yeah, I need more context on this one. The tools work perfectly fine with our tanks, and its the tank that implements interaction behavior on right click.

Do you also have this issue with seared tanks right clicking on the other mod's fluid tank? Also try with copper cans.

No, seared/scorched tank and copper cans works just fine, the issue seemed to only happen with modifiable items. Also, this issue won't occur when interacting with fluid cell from Thermal Series.

KnightMiner commented 4 days ago

Does this issue happen on 1.18?

Does it happen with any mods other than Melanism? E.g. create or immersive engineering

EtSH-C2H6S commented 4 days ago

Does this issue happen on 1.18?

Does it happen with any mods other than Melanism? E.g. create or immersive engineering

Now I've tested tanks from create , immersive engineering , pneumaticcraft , functional storage and also tested transfering fluid from AE2 terminal, and the issue didn't occur.It only happens with tanks in mekanism and industrial foregoing. Also this issue does happens on 1.18 (with tcon ver. 3.6.4.113).

KnightMiner commented 4 days ago

Okay, if the issue also existed on 1.18 that rules out the recent refactors as causing this. I am going to bet since it only happens with a small subset of mods that the issue is actually on Mekanism and Industrial Foregoing's sides, they are likely not doing enough safety checks for fluid transfer. I recommend crossposting the issue there and linking it here. If I am doing something wrong on my side, somehow it works in basically every other mod.

For some additional context for the crosspost, Tinker tools with tanks support variable amounts of fluid with a fixed max capacity, though that max capacity is determined by NBT. The tools also don't always have a tank, some NBT variants will be listed as having 0 tanks.