Skip to content

Fix truncation of Baritone long settings - #6651

Open
mornhussakuyo-hub wants to merge 1 commit into
MeteorDevelopment:masterfrom
mornhussakuyo-hub:fix/baritone-long-settings
Open

Fix truncation of Baritone long settings#6651
mornhussakuyo-hub wants to merge 1 commit into
MeteorDevelopment:masterfrom
mornhussakuyo-hub:fix/baritone-long-settings

Conversation

@mornhussakuyo-hub

@mornhussakuyo-hub mornhussakuyo-hub commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Type of change

  • Bug fix
  • New feature

Description

Baritone Long settings were wrapped in IntSetting, so opening the settings tab converted their values to 32-bit integers and wrote the truncated values back to Baritone.

This adds a LongSetting with a text-box editor and uses it for every Baritone Long value.

Related issues

Fixes #6219

How Has This Been Tested?

  • Ran ./gradlew build.
  • Checked that the reported value, 7540332306713543803, round-trips through LongSetting without truncation and that overflowing input is rejected.
  • Checked the compiled Baritone adapter for LongSetting usage and the absence of Long.intValue() calls.
  • Tested the packaged mod in Minecraft 26.2 with Baritone 26.2-SNAPSHOT. The reported value remained unchanged after opening the Baritone settings page and restarting the client.

Checklist:

  • My code follows the style guidelines of this project.
  • The change has no complex areas that need explanatory comments.
  • I have tested the code in both development and production environments.

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.

Baritone tab change values without the user permission

1 participant