-
-
Notifications
You must be signed in to change notification settings - Fork 531
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
Fixed render crash when placing Universal Cables on ValkyrienSkies ships #8260
base: release/1.20.x
Are you sure you want to change the base?
Conversation
- Added ValkyrienSkies and Eureka as runtime mods to help with mod compatibility testing.
This fix is in response to the open issue on the ValkyrienSkies github page: ValkyrienSkies/Valkyrien-Skies-2#558 |
Valkyrien Skies should be checking |
Sounds good, thank you! I have been trying to get ValkyrienSkies to compile with Mekanism as a runtime mod in their repo, but I continue to get this error when running the game: Caused by: java.lang.NoSuchMethodError: 'java.lang.String net.minecraft.Util.m_137492_(java.lang.String, net.minecraft.resources.ResourceLocation)' Has anyone run into this error before? I would love to investigate this issue from the VS side of things, but I can't seem to get it to compile properly. I had no issues getting ValkyrienSkies running in mekanism's build.gradle, so I'm not quite sure what I'm missing. Any help is appreciated. Thanks! |
Okay figured it out, and have submitted a fix on the VS side here: ValkyrienSkies/Valkyrien-Skies-2#1006 |
After further investigation, it turns out the VS side change isn’t the ideal fix. Using shouldRender() causes beds and other uniquely shaped objects to become invisible. I believe adding a proper null check here would be sufficient in this case, though I’m definitely open to other suggestions if anyone has ideas for a better solution. I also see render() calls shouldRender() so I'm still uncertain how the cable's render is even getting called. I'll need to do some more investigating on this. For now, I’m using a custom-built version of Mekanism with the null check locally to prevent crashes. |
Adding this check fixes the crash
can it actually be reproduced with only Mekanism and VS? |
Yee it occurs with only VS and Mekanism installed together. I found that adding shouldRender() to MekanismTileEntityRenderer fixes the crash (see most recent commit) |
Can you send a crashlog with just Mek and VS? |
Changes proposed in this pull request:
Now with this fix, the client no longer crashes and players are able to place cables on VS ships.