Skip to content

Conversation

@Archengius
Copy link
Contributor

When there are two cables with different shapes but identical connections and the same parts (but placed on different sides), cache collision will occur, with both shapes having the same cache key, but different collision shapes. This results in ghost collisions when playing in single player and collision desync between server and the client on dedicated servers.

Example of two cable blocks having different shapes but same cache key, resulting in them having the same shape. Notice how on the second part the collision box on the left should not logically exists, but is shown due to the bug mentioned.

image image

…ies that have the same part on two different sides while having the same cable connections
@coveralls
Copy link

Coverage Status

coverage: 45.142%. remained the same
when pulling 0d74d3c on Archengius:fix-part-shape-cache-collision
into 943b79f on CyclopsMC:master-1.21-lts.

@rubensworks
Copy link
Member

Oh, good catch, I never even noticed this was a problem 😅

@rubensworks rubensworks merged commit 63a1d3a into CyclopsMC:master-1.21-lts Jan 10, 2026
3 checks passed
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.

3 participants