Skip to content

Allow up to three decimal places for fluids amounts#64

Merged
rlnt merged 1 commit into
AlmostReliable:1.20.1-forgefrom
jabou453:1.20.1-forge_fluid-display
Jun 20, 2026
Merged

Allow up to three decimal places for fluids amounts#64
rlnt merged 1 commit into
AlmostReliable:1.20.1-forgefrom
jabou453:1.20.1-forge_fluid-display

Conversation

@jabou453

Copy link
Copy Markdown
Contributor

The ME Requester work perfectly fine when configured with millibucket amounts of fluid, but the number field unconditionally marks them as invalid because of the decimal places. This logic makes sense for items only, but fluids quantities are valid down to 0.001B (1mB).

Issue Reference

Fixes issue #41.

Proposed Changes

Add a ternary for the number of decimal places allowed. Default is kept at zero for items, but conditionally set to three for fluids (increments of 1mB) using the existing NumberField member isFluid.

This is how that looks in-game;
2026-06-15 01-51-53
2026-06-15 01-54-16

Additional Context

I targeted 1.20.1-forge here because that is the version the pack I play (Star Technology) is based on.
The fix cleanly applies to all versions in this repo, so it can be cherry-picked over.
I know this fix isn't critical, but I was hoping you'd at least consider adding this QoL fix.

Thank you!!

@rlnt
rlnt merged commit 1bb0123 into AlmostReliable:1.20.1-forge Jun 20, 2026
1 check passed
rlnt added a commit that referenced this pull request Jun 20, 2026
rlnt pushed a commit that referenced this pull request Jun 20, 2026
@jabou453
jabou453 deleted the 1.20.1-forge_fluid-display branch June 20, 2026 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants