SuperMartijn642 / ChunkLoaders

15 stars 11 forks source link

[Crash, Fabric] Seeing a Chunk Loader through an Immersive Portal crashes the game #118

Closed Flexico closed 2 months ago

Flexico commented 2 months ago

Version Info

Are you using OptiFine?: No

Steps to Reproduce Place a chunk loader, Set up portals so that you can see the chunk loader from beyond the render distance Look through portal

Crash report (~/logs/latest.log) https://pastebin.com/02FNRPq4

I'm posting this both here and on IP's issue log

SuperMartijn642 commented 2 months ago

The crash seems to be caused by TurtleBlockEntityRenderer from Computer Craft. There are no errors which involve Chunk Loaders in the log.

Caused by: java.lang.NullPointerException: Cannot invoke "net.minecraft.class_239.method_17783()" because "hit" is null at dan200.computercraft.client.render.TurtleBlockEntityRenderer.render(TurtleBlockEntityRenderer.java:58) ~[cc-tweaked-1.20.1-fabric-1.110.0.jar:?]

Flexico commented 2 months ago

Ooooohh! That makes sense; when I tested it without the chunk loader, the turtles didn't show because the chunk wasn't loaded. Thanks for checking this.