fix concurrent modification

This commit is contained in:
JozsefA 2021-02-18 14:00:17 -08:00
parent d59fea1079
commit 3e63afa5f5

View File

@ -136,7 +136,7 @@ public abstract class InstancedTileRenderer<P extends BasicProgram> {
}
public void clean() {
instances.keySet().stream().filter(TileEntity::isRemoved).forEach(instances::remove);
instances.keySet().removeIf(TileEntity::isRemoved);
}
public void invalidate() {