ImmersivePortalsModForForge icon indicating copy to clipboard operation
ImmersivePortalsModForForge copied to clipboard

GUI Portal and/or Chunkloading Not Working

Open TheFloydman opened this issue 4 years ago • 2 comments

The GUI portals in the Fabric version work phenomenally. However, following the same steps with the Forge version is not working correctly. In my code, when my container (screenhandler in Fabric) loads, I create a chunkloader and add it to NewChunkTrackingGraph. I then render on my screen and remove the chunkloader when the container closes. However, the chunks don't seem to load client-side, so just the sky gets rendered.

For Forge, rendering happens here: https://gitlab.com/TheFloydman/linking-books/-/blob/master/src/main/java/thefloydman/linkingbooks/client/gui/widget/LinkingPanelWidget.java#L90-104

Forge chunk (un)loading happens here: https://gitlab.com/TheFloydman/linking-books/-/blob/master/src/main/java/thefloydman/linkingbooks/inventory/container/LinkingBookContainer.java#L56 https://gitlab.com/TheFloydman/linking-books/-/blob/master/src/main/java/thefloydman/linkingbooks/inventory/container/LinkingBookContainer.java#L70 https://gitlab.com/TheFloydman/linking-books/-/blob/master/src/main/java/thefloydman/linkingbooks/integration/ImmersivePortalsIntegration.java

For Fabric, rendering happens here: https://gitlab.com/TheFloydman/linking-books-fabric/-/blob/master/src/main/java/thefloydman/linkingbooks/client/gui/widget/LinkingPanelWidget.java

Fabric chunk (un)loading happens here: https://gitlab.com/TheFloydman/linking-books-fabric/-/blob/master/src/main/java/thefloydman/linkingbooks/client/gui/widget/LinkingPanelWidget.java https://gitlab.com/TheFloydman/linking-books-fabric/-/blob/master/src/main/java/thefloydman/linkingbooks/screen/LinkingBookScreenHandler.java#L89 https://gitlab.com/TheFloydman/linking-books-fabric/-/blob/master/src/main/java/thefloydman/linkingbooks/integration/ImmersivePortalsIntegration.java

TheFloydman avatar Jan 21 '21 03:01 TheFloydman

I've also confirmed that when I try to render a chunk that's loaded because I'm in it, no entities get rendered, including myself.

TheFloydman avatar Jan 21 '21 03:01 TheFloydman

Just to continue my observations here, water and entities are rendering incorrectly in GUI portals. My previous comment that entities don't render is wrong; they just get rendered in the wrong place.

TheFloydman avatar Jan 24 '21 19:01 TheFloydman