Skip to content

Commit

Permalink
Changed destroy to release the ticket
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkGuardsman committed Aug 5, 2018
1 parent 88f0539 commit 86fa0e8
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,14 +297,11 @@ public void destroy()
this.missileList.clear();
this.missileSpawnList.clear();

if(currentLoadedChunks != null)
if(chunkLoadTicket != null)
{
for (Pair<ChunkPos, Integer> chunkPair : currentLoadedChunks)
{ // unforca all chunks
ForgeChunkManager.unforceChunk(chunkLoadTicket, chunkPair.getKey());
}
ForgeChunkManager.releaseTicket(chunkLoadTicket);
chunkLoadTicket = null;
}
currentLoadedChunks.clear();
chunkLoadTicket = null;
}
}

0 comments on commit 86fa0e8

Please sign in to comment.