Skip to content

Allow up to three decimal places for fluids amounts#64

Open
jabou453 wants to merge 1 commit into
AlmostReliable:1.20.1-forgefrom
jabou453:1.20.1-forge_fluid-display
Open

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

Conversation

@jabou453

Copy link
Copy Markdown

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!!

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.

1 participant