Skip to content

Conversation

@greym0uth
Copy link

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