[SPIGOT-7661] Chunks don't unload when server frozen Created: 07/May/24  Updated: 25/Dec/24  Resolved: 18/May/24

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Shane Bee Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None

Attachments: File Test-1.0-SNAPSHOT.jar    
Version: CraftBukkit version 4159-Spigot-e2c1eee-12360a7
Plugin: just my test plugin
Guidelines Read: Yes

 Description   

Recently I noticed when the server is frozen via `/tick freeze` ... chunks do not unload.
I haven't been able to test this on vanilla as I don't know a way to check for size of loaded chunks on a vanilla server.
I'm going to guess this is probably a vanilla issue as well, and I feel like Mojang would say this is intended.
While this is probably a Minecraft/vanilla bug, I figured I'd bring it to Spigot's attention in the hopes of a server side remedy.

I'm including a plugin with simple code in a command:

World world = player.getWorld();
int size = world.getLoadedChunks().length;
player.sendMessage("Size of loaded chunks: " + size);

Steps to reproduce:

  • log in
  • once you feel chunks have finished loading around you, run the command "/test"
  • Obviously based on view distance set, the output will vary, in my scenario I get "121"
  • Move around a bit, run the command again, number will be the same.
  • Now run "/tick freeze"
  • move around quite a bit
  • as you move around, run the "/test" command again, and you shall see this number climb.
  • now run "/tick unfreeze", wait a second, run "/test"
  • you should see the number we originally started with.

Since this is most likely intended by the server, maybe a Spigot/Bukkit config option to disable this? (if do-able)

Thank you for your time.



 Comments   
Comment by Shane Bee [ 18/May/24 ]

tested, works splendidly.
Thank you!

Comment by md_5 [ 18/May/24 ]

I have added unload-frozen-chunks option for you to test

Generated at Sat Apr 05 09:38:08 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.