Page 1 of 1
[2.0.73] Setting required fluid per mining operation to 0.1 shows as 0.0
Posted: Wed Jan 21, 2026 2:43 pm
by Quezler
When a resource has `minable.fluid_amount` set to 1 you can see in the tooltip of a drill placed on it that it takes 0.1 per mining operation, but when you select the resource entity it shows 0.0, so there is a rounding error somewhere.
Steps to reproduce:
- change the `minable.fluid_amount` of uranium from 10 to 1
- place a drill on an uranium patch
- look at the sidebar of the drill
- look at the sidebar of the ore
Expected behavior:
- the sidebar of the ore also shows as 0.1
Re: [2.0.73] Setting required fluid per mining operation to 0.1 shows as 0.0
Posted: Tue Jan 27, 2026 4:43 pm
by Rseding91
Thanks for the report however this is correct. A "mining operation" on a drill is 10 ores so it requires 0.1 fluid for 10 ores. On the ore itself it requires only 0.1 / 10 fluid per individual ore or 0.01 fluid. This rounds down and shows 0 in the tooltip.
Re: [2.0.73] Setting required fluid per mining operation to 0.1 shows as 0.0
Posted: Wed Jan 28, 2026 11:43 am
by Quezler
Rseding91 wrote: Tue Jan 27, 2026 4:43 pm
Thanks for the report however this is correct. A "mining operation" on a drill is 10 ores so it requires 0.1 fluid for 10 ores. On the ore itself it requires only 0.1 / 10 fluid per individual ore or 0.01 fluid. This rounds down and shows 0 in the tooltip.
but that would mean the uranium drill & ore tooltips are wrong then since it shows 1 for both, so i still kinda feel like this is a rounding error:
Re: [2.0.73] Setting required fluid per mining operation to 0.1 shows as 0.0
Posted: Wed Jan 28, 2026 1:07 pm
by Rseding91
Hmm, actually I was wrong. They are both using the / 10 value however one just puts "the number" and one through a bunch of generic name-and-count logic eventually converts to an integer before showing.