3
0

remove chunkManager

This commit is contained in:
2017-07-31 23:30:07 +08:00
parent c4ade5b285
commit 6f42a00406
8 changed files with 95 additions and 123 deletions

View File

@ -73,7 +73,7 @@
if (this.players.isEmpty())
{
+ if (this.theWorldServer.loadedEntityList.size() == 0 || this.theWorldServer.theChunkProviderServer.chunkManager.size() == 0)
+ if (this.theWorldServer.loadedEntityList.size() == 0 || this.theWorldServer.theChunkProviderServer.getLoadedChunkCount() == 0)
+ {
+ return; // CraftBukkit - Only do unload when we go from non-empty to empty
+ }