could be a fix to concur modification error
So far it looks like it is working but more research/testing needs to be done.
This commit is contained in:
parent
2b068ef512
commit
b021cd6d3f
1 changed files with 37 additions and 34 deletions
|
@ -2,6 +2,7 @@ package mekanism.api.transmitters;
|
|||
|
||||
import java.util.EnumSet;
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
import java.util.Set;
|
||||
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
|
@ -133,21 +134,23 @@ public class TransmitterNetworkRegistry implements ITickHandler
|
|||
|
||||
public void refreshChunk(Chunk c)
|
||||
{
|
||||
if(c != null)
|
||||
{
|
||||
for(Object obj : c.chunkTileEntityMap.values())
|
||||
{
|
||||
if(obj instanceof TileEntity)
|
||||
{
|
||||
TileEntity tileEntity = (TileEntity)obj;
|
||||
if(c != null)
|
||||
{
|
||||
Iterator it = c.chunkTileEntityMap.entrySet().iterator();
|
||||
while(it.hasNext())
|
||||
{
|
||||
Object obj = it.next();
|
||||
if(obj instanceof TileEntity)
|
||||
{
|
||||
TileEntity tileEntity = (TileEntity)obj;
|
||||
|
||||
if(tileEntity instanceof ITransmitter)
|
||||
{
|
||||
((ITransmitter)tileEntity).refreshTransmitterNetwork();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if(tileEntity instanceof ITransmitter)
|
||||
{
|
||||
((ITransmitter)tileEntity).refreshTransmitterNetwork();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue