scriptcoded / scripts-chunk-loaders

Make minecarts act as chunk loaders using redstone.
MIT License
4 stars 6 forks source link

Adjust logging of chunk loader creation, or possibly re-creation bug? #28

Open rmonk opened 2 months ago

rmonk commented 2 months ago

The chunk loaders seem to work just perfectly, but I am getting a lot of log spam:

[13:52:44] [Server thread/INFO]: Adding class_1700['Chunk Loader'/17, l='ServerLevel[world]', x=143.74, y=85.06, z=48.49] to minecraft:overworld
[13:52:46] [Server thread/INFO]: Re-registering chunk loader
[13:52:46] [Server thread/INFO]: Removing class_1700['Chunk Loader'/17, l='ServerLevel[world]', x=144.27, y=85.06, z=57.51] from minecraft:overworld
[13:52:46] [Server thread/INFO]: worldChunks {30064771064=[744ca65f-55b9-4fee-b0c4-a18965428460], 12884901896=[0562825a-953d-4173-a1a4-167e0c275580], 25769803767=[5e05621e-07f6-40ce-83e2-83b383696491], 30064771080=[c373068d-7a28-4d21-bb4e-4e5a297e2e9b]}

It looks like the following lines are at INFO level and maybe should be at DEBUG? Or maybe it's creating/removing them as a bug, I'm not sure. I think that is for a moving minecart. Maybe when they are created it logs at INFO the one time, but only logs the subsequent events at DEBUG level?

Minecraft: 1.21 Fabric: 0.15.11 Mod version: 0.3.1

scriptcoded commented 1 month ago

Hey thanks for the report! That's really interesting. Some of those should be gone, others should probably be debugs, yes. As for why it's repeating I'll have to investigate that. It's only supposed to happen when a chunk loader is traveling between dimensions. For some reason it's running while the cart is moving. 🤔