Skip to content

Commit

Permalink
Fixed concurrent modification exception
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTJP committed Jun 18, 2015
1 parent cc06819 commit b1e294c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mrtjp/core/world/blocktickhook.scala
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ object BlockUpdateHandler
//Reproduces same algorithm used for random block updates
val world = event.world.asInstanceOf[WorldServer]
val chunks = world.theChunkProviderServer.loadedChunks.asInstanceOf[JList[Chunk]]
for (chunk <- chunks)
val cCopy = new Array[Chunk](chunks.size()); chunks.copyToArray(cCopy)
for (chunk <- cCopy) if (chunk.isChunkLoaded)
{
val extendedblockstorage = chunk.getBlockStorageArray
for (ebs <- extendedblockstorage) if (ebs != null)
Expand Down

0 comments on commit b1e294c

Please sign in to comment.