Skip to content

Commit

Permalink
Fix ConcurrentModificationException
Browse files Browse the repository at this point in the history
  • Loading branch information
gamerforEA committed Sep 15, 2017
1 parent 952076c commit a4083ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/appeng/hooks/TickHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import com.gamerforea.ae.BusUtils;
import com.google.common.base.Stopwatch;
import com.google.common.collect.LinkedListMultimap;
import com.google.common.collect.Lists;
import com.google.common.collect.Multimap;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.gameevent.TickEvent;
Expand Down Expand Up @@ -188,7 +189,7 @@ public void onChunkUnload(ChunkEvent.Unload event)
{
IStorageGrid storageGrid = grid.getCache(IStorageGrid.class);
if (storageGrid != null)
for (IGridNode node : grid.getMachines(PartStorageBus.class))
for (IGridNode node : Lists.newArrayList(grid.getMachines(PartStorageBus.class)))
{
IGridHost host = node.getMachine();
if (host instanceof PartStorageBus)
Expand Down

0 comments on commit a4083ed

Please sign in to comment.