-
Notifications
You must be signed in to change notification settings - Fork 204
fix: P:R Toggle Latch client crash #1965
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
fix: P:R Toggle Latch client crash #1965
Conversation
The renderer in use can't deal with vertices that are not face-aligned to block orientations and thus crashes on the inclines faces of the lever model. Changing the lever model to have straight faces with a sliding lever instead of a gyrating one fixes this crash. Fixes: #1959
|
Whops, guess I accidentally exposed this bug with a CBMultipart update :harold: |
I'm surprised it ever worked to begin with ^^ |
|
Previously it was using CCL's renderer and lighting engines, which use the encoded normals in the model for lighting, so it likely did not care. The change I did in CBMultipart was to require parts to return BakedQuads (this improves sodium compat) and let vanilla handle everything, the path ProjectRed is going through is the compat fallback where it will try and create baked quads from the old api endpoints, which requires it to compute an orientation for the quad. |
Oh that's cool. Would it work to have CBMultipart/CCL calculate the nearest |
|
Thanks for looking into this! @covers1624 should we switch to using the non-fallback path? I can merge this for now but I don't want to just work around the core of the issue. There's likely many models in PR that don't have direction aligned quads |
|
Yes, we should, but the models likely need to be fixed regardless. We may be able to make CCL slightly smarter with the auto-compute of the orientation here too. |
|
Merging this new model. Once we move to the modern render path, I'll decide if I want the classic one back. Kinda like this new one though. |
It fits the aesthetics of the mod pretty well, doesn't it? ^^ |
The renderer in use can't deal with vertices that are not face-aligned to block orientations and thus crashes on the inclines faces of the lever model. Changing the lever model to have straight faces with a sliding lever instead of a gyrating one fixes this crash.
Fixes: #1959