Skip to content

fix renderer removing packed tile data on swapped tiles#616

Open
greym0uth wants to merge 2 commits into
StarArawn:mainfrom
greym0uth:fix-swap
Open

fix renderer removing packed tile data on swapped tiles#616
greym0uth wants to merge 2 commits into
StarArawn:mainfrom
greym0uth:fix-swap

Conversation

@greym0uth
Copy link
Copy Markdown

Fixes #559.

Problem

The render checks to see if the tile's old position and new position do not match and it greedily remove's it from the chunk at that old position. If a tile earlier in the iteration was placed at that tile's old location it will be removed and the tile data is lost.

Solution

We introduce a set and use it to check if the tile's old position in the chunk was updated by an entity in a previous iteration.

@greym0uth greym0uth changed the title fix render removing packed tile data on swapped tiles fix renderer removing packed tile data on swapped tiles Jun 20, 2025
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.

Moving tiles to where another tile used to be fails to render properly

1 participant