Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spatial Storage Cells will show wrong tooltip when playing on dedicated server. #8430

Open
Cassy-Lee opened this issue Mar 22, 2025 · 0 comments
Labels
bug Self explanatory?

Comments

@Cassy-Lee
Copy link

Describe the bug

Formatted Spatial Storage Cells says it's not formatted in tooltip when playing on dedicated server.

How to reproduce the bug

Format a Spatial Storage Cell with any compatible size.

Expected behavior

After the cell was formatted, it's tooltip shows it's plot id and size.

Additional details

This problem exists since very long ago and the old issue #8038 was closed because this was a display problem, but it's still a problem which needs to be fixed.
All information displayed on single player were already sent to client and this problem is client want to make sure the plot really exists while only server knows the answer.
Proof already shown in log:
[Render thread/WARN] [ap.it.st.SpatialStorageCellItem/]: Failed to retrieve spatial storage dimension for plot SpatialPlotInfo[id=1, size=BlockPos{x=16, y=16, z=16}]: java.lang.IllegalStateException: No server is currently running.
(this warning shows up when the tooltip was displayed)
The easiest fix is remove the check and simply use the SpatialPlotInfo to display the tooltip.
A better fix would be asking remote server and cache the answer while not playing single-player game.
If it still won't be fixed, please at least remove the tooltip so that it wasn't confusing to have a formatted "Unformatted" Spatial Storage Cell

Which minecraft version are you using?

1.21

On which mod loaders does it happen?

NeoForge

Crash log

https://gist.github.com/Cassy-Lee/2d45e353e1983c2240bfaf3428d3c1e9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Self explanatory?
Projects
None yet
Development

No branches or pull requests

1 participant