Skip to content

Fix structure block CUI resetting selections cross-world.#2561

Merged
wizjany merged 1 commit intoversion/7.3.xfrom
fix/drawsel-resets-selection-world
Jun 26, 2024
Merged

Fix structure block CUI resetting selections cross-world.#2561
wizjany merged 1 commit intoversion/7.3.xfrom
fix/drawsel-resets-selection-world

Conversation

@wizjany
Copy link
Copy Markdown
Collaborator

@wizjany wizjany commented Jun 25, 2024

Previously, if a world override was active (e.g. via //world), createStructureBlock would always attempt to check the player (entity) world rather than their selection world. This led to the selection getting reset immediately. Now, we first check if there's anything to render (i.e. if the selection is in the current world) before attempting to get the selection from the player's session.

@wizjany wizjany requested a review from a team as a code owner June 25, 2024 19:59
Previously, if a world override was active (e.g. via //world), createStructureBlock would always attempt to check the player (entity) world rather than their selection world. This led to the selection getting reset immediately. Now, we first check if there's anything to render (i.e. if the selection is in the current world) before attempting to get the selection from the player's session.
@wizjany wizjany force-pushed the fix/drawsel-resets-selection-world branch from 04826c9 to dc329ab Compare June 26, 2024 23:01
@wizjany wizjany enabled auto-merge (rebase) June 26, 2024 23:01
@wizjany wizjany disabled auto-merge June 26, 2024 23:02
@wizjany wizjany enabled auto-merge (squash) June 26, 2024 23:02
@wizjany wizjany merged commit 3adba9f into version/7.3.x Jun 26, 2024
@wizjany wizjany deleted the fix/drawsel-resets-selection-world branch June 26, 2024 23:14
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