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

Interacting with blocks in dimensions other than the Overworld causes disconnections #13

Closed
ikafly144 opened this issue Aug 11, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@ikafly144
Copy link

ikafly144 commented Aug 11, 2024

Issue description

[13:24:56] [Server thread/INFO]: ikafly144 lost connection: Internal Exception: java.lang.IllegalArgumentException: Cannot measure distance between world_nether and world
[13:24:56] [Server thread/INFO]: ikafly144 left the game

final double dist = playerLoc.distanceSquared(screen.getLocation());

This line seems to be the cause

To reproduce

Place a map screen in the overworld.
Go to a dimension other than the Overworld (such as the Nether) and right-click on a block.

Expected behaviour

Right clicking doesn't kick you off the server

Screenshots / videos

No response

Additional information

No response

@ikafly144 ikafly144 added the bug Something isn't working label Aug 11, 2024
@cerus
Copy link
Owner

cerus commented Aug 11, 2024

Thank you for reporting this bug, I'll try to get a fix out asap. Until the bug is fixed you could try setting use-triangulation in plugins/maps/maps-config.yml to false - this should fix the issue for now.

@cerus
Copy link
Owner

cerus commented Aug 16, 2024

Fixed in 84ad5a1 (see release 3.8.7)

@cerus cerus closed this as completed Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants