Incompatibility with Advanced Runtime Resource Packs, causing game process to hang on quit
* **Minecraft version**: 1.19.4 (and 1.20.1 using [this unreleased dev commit version](https://gitlab.com/jeseibel/minecraft-lod-mod/-/jobs/4636499910), if that's helpful)
* **Distant Horizons version**: 1.6.11a (and [this commit of 2.0.0-a-dev](https://gitlab.com/jeseibel/minecraft-lod-mod/-/jobs/4636499910))
* **Mod loader**: Quilt and Fabric (I tested both)
* **Installed mods**:
* This mod (obviously)
* [Enhanced Block Entities](https://modrinth.com/mod/ebe/version/0.7.1+1.19) and/or [LambdaBetterGrass](https://modrinth.com/mod/lambdabettergrass) (anything that uses whatever `rrp` is I think)
* Quilted Fabric API / Fabric API (breaks on both) - dependency of Enhanced Block Entities and LambdaBetterGrass, ~~and I think what actually adds `rrp`~~ it's added by [ARRP](https://github.com/Devan-Kerman/ARRP)
* **Describe the bug**:
If you use both Distant Horizons and a mod that does something with whatever `rrp` is (Runtime Resource Pack? I'm not actually a modder (not yet, anyway), this is just a guess at what it is) like Enhanced Block Entities or LambdaBetterGrass (I think LambdaBetterGrass uses it, it's less clear than Enhanced Block Entities), join a world (just being on the title screen isn't enough), and then try to close the game, the game window will close but the process will hang and need to be closed manually (like with MultiMC/Prism Launchers "Kill" button, or Task Manager if you're on Windows probably). It hangs just after the last log line and before the game process would normally close, which is here:
```plaintext
[...]
[20:43:21] [Server thread/INFO]: Distant Horizon unloaded
[20:47:21] [Server thread/INFO]: closing rrp ebe:base_resources
<-- left the world, on title screen here, hence time difference. clicking "quit":
[20:47:25] [Render thread/INFO]: Stopping!
[20:47:25] [Render thread/INFO]: closing rrp ebe:base_resources
<-- hangs here
Process exited with code 0. <-- doesn't actually happen, has to get killed manually by the user
```
I don't remember exactly, but I don't think this used to happen. I think it broke randomly semi-recently, but I don't remember changing any of my mods when that happened so I might be wrong... But it does break now and is consistently broken.
Not sure why the same thing gets logged twice, particularly after "Stopping!". Maybe that's the real bug and Distant Horizons just makes it actually have an affect for some reason? If you don't join a world you only get that line once ("after" game close instead of also at world close since a world was never opened):
```plaintext
[...]
[21:00:02] [Render thread/INFO]: Created: 256x256x0 minecraft:textures/atlas/paintings.png-atlas
[21:00:02] [Render thread/INFO]: Created: 128x128x0 minecraft:textures/atlas/mob_effects.png-atlas
<-- title screen again, no world join. clicking "quit":
[21:00:09] [Render thread/INFO]: Stopping!
[21:00:09] [Render thread/INFO]: closing rrp ebe:base_resources <-- why after "Stopping!"?
Process exited with code 0. <-- no hanging if you don't open a world, or don't use Distant Horizons
```
^^ that's also what it looks like without Distant Horizons
* **Steps to reproduce the bug**:
1. Launch the game with Distant Horizons and Enhanced Block Entities
2. Open a world
3. Close the world
4. Click "quit"
5. See how the game process hangs instead of closing
---
The issue template also told me to include my log file and config file, though I don't think they're important (config is left at default and relevant logs are included above already) but I'll add them anyway:
* [latest.log](/uploads/a367dab7b15bbab92f865df9ad2007f7/latest.log)
* [DistantHorizons.toml](/uploads/656ef7789f60620755b38cf72d8c51a0/DistantHorizons.toml)
issue